Skip to content

Commit

Permalink
Fixes the problem finding development.ini
Browse files Browse the repository at this point in the history
Unfortunately the code forgot to use os.cwd() to  ensure config was
loaded with an absolute path, and was trying to load it relative without
knowing from where.
  • Loading branch information
rossjones committed Nov 21, 2014
1 parent b455441 commit 8a77df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/cli.py
Expand Up @@ -124,7 +124,7 @@ def _get_config(self):
self.filename = os.environ.get('CKAN_INI')
config_source = '$CKAN_INI'
else:
self.filename = 'development.ini'
self.filename = os.path.join(os.getcwd(), 'development.ini')
config_source = 'default value'

if not os.path.exists(self.filename):
Expand Down

0 comments on commit 8a77df4

Please sign in to comment.