|
@@ -33,7 +33,10 @@ class Demeter(object):
|
|
|
PATH = File.path()
|
|
|
cls.path = PATH
|
|
|
if cls.config == {}:
|
|
|
- filename = cls.path + 'demeter.conf'
|
|
|
+ name = 'dev'
|
|
|
+ if 'DEMETER_CONF' in os.environ:
|
|
|
+ name = os.environ['DEMETER_CONF']
|
|
|
+ filename = cls.path + 'conf/'+name+'.conf'
|
|
|
if File.exists(filename):
|
|
|
config = ConfigParser.ConfigParser()
|
|
|
config.read(filename)
|