diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-11-02 15:57:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2020-11-02 15:57:16 +0000 |
commit | 715f81ffde428759c902cdd16c9b8d03f2bdf463 (patch) | |
tree | 70b3b6429a411371bff8907340157d2122760fab /gita/common.py | |
parent | Adding upstream version 0.10.10. (diff) | |
download | gita-715f81ffde428759c902cdd16c9b8d03f2bdf463.tar.xz gita-715f81ffde428759c902cdd16c9b8d03f2bdf463.zip |
Adding upstream version 0.11.9.upstream/0.11.9
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gita/common.py')
-rw-r--r-- | gita/common.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gita/common.py b/gita/common.py index 0a271fc..ef3933d 100644 --- a/gita/common.py +++ b/gita/common.py @@ -6,3 +6,11 @@ def get_config_dir() -> str: os.path.expanduser('~'), '.config') root = os.path.join(parent, "gita") return root + + +def get_config_fname(fname: str) -> str: + """ + Return the file name that stores the repo locations. + """ + root = get_config_dir() + return os.path.join(root, fname) |