summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-11-09 13:45:43 +0100
committerRobert Honz <exislow+github@gmail.com>2024-11-09 13:45:43 +0100
commit558dfa65cc1b976628b04485eb81525929f4e6c1 (patch)
tree8ea63131569f6c748207e489c6f373a01beecfe5
parent99e8c5f32752510a8ec6ef6f0ebdfe32a59e1cb8 (diff)
downloadtidal-dl-ng-558dfa65cc1b976628b04485eb81525929f4e6c1.tar.gz
Respect user specified config directory. Fixes #141
-rw-r--r--tidal_dl_ng/helper/path.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py
index bc1fb6d..c00ddfd 100644
--- a/tidal_dl_ng/helper/path.py
+++ b/tidal_dl_ng/helper/path.py
@@ -26,7 +26,7 @@ def path_home() -> str:
def path_config_base() -> str:
- path_config: str = ".config"
+ path_config: str = os.environ.get("XDG_CONFIG_HOME", ".config")
path_base: str = os.path.join(path_home(), path_config, __name_display__)
return path_base