diff --git a/src/my/core/init.py b/src/my/core/init.py index 1e7d3715..0a478796 100644 --- a/src/my/core/init.py +++ b/src/my/core/init.py @@ -63,7 +63,7 @@ def setup_config() -> None: used_config_path = Path(used_config_file) try: # will crash if it's imported from other dir? - used_config_path.relative_to(mycfg_dir) + used_config_path.resolve().relative_to(mycfg_dir.resolve()) except ValueError: # TODO maybe implement a strict mode where these warnings will be errors? warnings.warn(