From fced1a0723c05475fe5420237e81836b86cdf205 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Mon, 6 Jul 2026 17:39:23 +0545 Subject: [PATCH] feat(src/window/panel): replace hardcoded config path with dynamic toml_file lookup --- src/window/panel/components/custom_mods.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/window/panel/components/custom_mods.py b/src/window/panel/components/custom_mods.py index 799fe22..5a73ac9 100644 --- a/src/window/panel/components/custom_mods.py +++ b/src/window/panel/components/custom_mods.py @@ -10,11 +10,9 @@ from gi.repository import Gio from shared.window.applet_window import AppletWindow from utils.functions import run_command, thread -from utils.utils import setup_cursor_hover, svg_file +from utils.utils import setup_cursor_hover, svg_file, toml_file -MODS_CONFIG_PATH = ( - Path(__file__).resolve().parent.parent.parent.parent.parent / "config" / "mods.toml" -) +MODS_CONFIG_PATH = Path(toml_file("mods.toml")) RELOAD_DELAY_MS = 200