summaryrefslogtreecommitdiffstats
path: root/git-interface/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'git-interface/config.py')
-rw-r--r--git-interface/config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-interface/config.py b/git-interface/config.py
index cd6495b..aac188b 100644
--- a/git-interface/config.py
+++ b/git-interface/config.py
@@ -9,7 +9,11 @@ def _get_parser():
if not _parser:
_parser = configparser.RawConfigParser()
- path = os.path.dirname(os.path.realpath(__file__)) + "/../conf/config"
+ if 'AUR_CONFIG' in os.environ:
+ path = os.environ.get('AUR_CONFIG')
+ else:
+ relpath = "/../conf/config"
+ path = os.path.dirname(os.path.realpath(__file__)) + relpath
_parser.read(path)
return _parser