Skip to content

Commit

Permalink
ProTo: Fixed bug in GalaxyConfigParser in startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinugu committed Nov 24, 2016
1 parent 82aabe5 commit dc5a57a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/proto/config/GalaxyConfigParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ class GalaxyConfigParser(SafeConfigParser):
def __init__(self):
SafeConfigParser.__init__(self, {'here': GALAXY_BASE_DIR})

configRelFn = os.environ.get('GALAXY_CONFIG_FILE')

if not configRelFn:
for configRelFn in ['config/galaxy.ini', 'config/galaxy.ini.sample']:
for configRelFn in [os.environ.get('GALAXY_CONFIG_FILE'),
'config/galaxy.ini',
'config/galaxy.ini.sample']:
if configRelFn:
configFn = GALAXY_BASE_DIR + '/' + configRelFn
if os.path.exists(configFn):
self.read(configFn)
break
else:
raise Exception('No Galaxy config file found at path: ' + configFn)
else:
raise Exception('No Galaxy config file found at path: ' + configFn)

def getWithDefault(self, key, default, section='app:main'):
try:
Expand Down

0 comments on commit dc5a57a

Please sign in to comment.