1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-05 07:03:38 +02:00

allow to specify a different config file via the environmental variable OSC_CONFIG

This commit is contained in:
Dr. Peter Poeml
2007-08-22 08:30:53 +00:00
parent 0da80f0fd9
commit 106645a87b

View File

@@ -166,7 +166,8 @@ def get_config():
import sys
global config
conffile = os.path.expanduser('~/.oscrc')
conffile = os.environ.get('OSC_CONFIG', '~/.oscrc')
conffile = os.path.expanduser(conffile)
if not os.path.exists(conffile):