summaryrefslogtreecommitdiffstats
path: root/gita/common.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-13 05:37:54 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-07-13 05:37:54 +0000
commited1e22b9d652ef3e01e56f227a359071f2a03b34 (patch)
tree50efa7d372c4750932e8b215b26294d19d99f34d /gita/common.py
parentAdding upstream version 0.16.3. (diff)
downloadgita-980fca1f9be25bdbae6813bc5563b64055a5fbc5.tar.xz
gita-980fca1f9be25bdbae6813bc5563b64055a5fbc5.zip
Adding upstream version 0.16.4.upstream/0.16.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gita/common.py')
-rw-r--r--gita/common.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gita/common.py b/gita/common.py
index 994e5e0..64116af 100644
--- a/gita/common.py
+++ b/gita/common.py
@@ -2,8 +2,11 @@ import os
def get_config_dir() -> str:
- root = os.environ.get('GITA_PROJECT_HOME') or os.environ.get('XDG_CONFIG_HOME') or os.path.join(
- os.path.expanduser('~'), '.config')
+ root = (
+ os.environ.get("GITA_PROJECT_HOME")
+ or os.environ.get("XDG_CONFIG_HOME")
+ or os.path.join(os.path.expanduser("~"), ".config")
+ )
return os.path.join(root, "gita")