From 56eb1e501f3b194c4d2b90207fbad59d3d4c07c5 Mon Sep 17 00:00:00 2001 From: Yuto Takano Date: Fri, 22 May 2026 05:24:29 +0200 Subject: [PATCH] Resolve MY_CONFIG path before warning unrelatedness --- src/my/core/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(