diff --git a/src/gui/main_window.py b/src/gui/main_window.py index 3c49163..fa71de1 100644 --- a/src/gui/main_window.py +++ b/src/gui/main_window.py @@ -111,7 +111,8 @@ class MainWindow(ctk.CTk): Returns: Path to user config file, or None if not found. """ - app_dir = Path(__file__).parent.parent + # Navigate from src/gui/main_window.py -> project root + app_dir = Path(__file__).parent.parent.parent # 1. Check for user config at project root user_config = app_dir / "config.yaml" @@ -139,7 +140,8 @@ class MainWindow(ctk.CTk): Returns: Path to user config file. """ - app_dir = Path(__file__).parent.parent + # Navigate from src/gui/main_window.py -> project root + app_dir = Path(__file__).parent.parent.parent config_path = app_dir / "config.yaml" config_path.parent.mkdir(parents=True, exist_ok=True) return config_path