🔧 config, data, settings: use user-specific config paths instead of hardcoded paths
This commit is contained in:
7 files changed
+39
-27
No files matched your search
+3
-1
@@ -40,7 +40,9 @@ DOCK_THEME = "Pills"
|
||||
|
||||
def load_config():
|
||||
"""Load the configuration from config.json"""
|
||||
config_path = os.path.expanduser(f"~/{APP_NAME_CAP}/config/json/config.json")
|
||||
config_path = os.path.expanduser(
|
||||
f"~/.config/{APP_NAME_CAP}/config/json/config.json"
|
||||
)
|
||||
config = {}
|
||||
|
||||
if os.path.exists(config_path):
|
||||
|
||||
Reference in new issue
Block a user