Commit ecbf32f0 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

git-interface: Add AUR_CONFIG environment variable

Introduce a new environment variable that can be used to specify the
path to an aurweb configuration file. If the environment variable is
unset, the default search path is used.

Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 2f5f5583
......@@ -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')
relpath = "/../conf/config"
path = os.path.dirname(os.path.realpath(__file__)) + relpath
return _parser
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment