From 774dc9403f653a80ece11fd59fc6b73b507a6860 Mon Sep 17 00:00:00 2001 From: None <62809003+Arrowar@users.noreply.github.com> Date: Sat, 15 Feb 2025 15:30:54 +0100 Subject: [PATCH] Update _jsonConfig.py --- StreamingCommunity/Util/_jsonConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StreamingCommunity/Util/_jsonConfig.py b/StreamingCommunity/Util/_jsonConfig.py index 8153c78..1d06f47 100644 --- a/StreamingCommunity/Util/_jsonConfig.py +++ b/StreamingCommunity/Util/_jsonConfig.py @@ -24,7 +24,7 @@ class ConfigManager: - file_path (str, optional): The path to the configuration file. Default is 'config.json'. """ if getattr(sys, 'frozen', False): - base_path = Path(sys._MEIPASS) + base_path = os.path.join(".") else: base_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) self.file_path = os.path.join(base_path, file_name)