diff --git a/python/zensical/config.py b/python/zensical/config.py index 4e4e965..d08e2bc 100644 --- a/python/zensical/config.py +++ b/python/zensical/config.py @@ -77,7 +77,9 @@ def parse_config(path: str) -> dict: """ Parse configuration file. """ - if path.endswith("zensical.toml"): + # Decide by extension; no need to convert to Path + _, ext = os.path.splitext(path) + if ext.lower() == ".toml": return parse_zensical_config(path) else: return parse_mkdocs_config(path)