From d9d2fa9bf2fd835b4dec8ab593377700b0df0b32 Mon Sep 17 00:00:00 2001 From: Jason Wallace Date: Wed, 27 Mar 2024 09:02:20 +0200 Subject: [PATCH] Fix config file path. --- jinjabread/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinjabread/config.py b/jinjabread/config.py index cefdd7b..3c4ec84 100644 --- a/jinjabread/config.py +++ b/jinjabread/config.py @@ -25,7 +25,7 @@ def load(cls, *, project_dir=None, config_file=None): suppress_missing_config_file_error = config_file is None project_dir = Path(project_dir or ".") - config_file = Path(config_file or CONFIG_FILENAME) + config_file = project_dir / Path(config_file or CONFIG_FILENAME) with (Path(__file__).parent / "defaults.toml").open("rb") as file: data = tomllib.load(file)