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.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/git-interface/config.py b/git-interface/config.py
deleted file mode 100644
index aac188b1..00000000
--- a/git-interface/config.py
+++ /dev/null
@@ -1,31 +0,0 @@
-import configparser
-import os
-
-_parser = None
-
-
-def _get_parser():
- global _parser
-
- if not _parser:
- _parser = configparser.RawConfigParser()
- 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
-
-
-def get(section, option):
- return _get_parser().get(section, option)
-
-
-def getboolean(section, option):
- return _get_parser().getboolean(section, option)
-
-
-def getint(section, option):
- return _get_parser().getint(section, option)