From 8a77df49f664cc5dc836891b0ce77269a055ff8a Mon Sep 17 00:00:00 2001 From: Ross Jones Date: Fri, 21 Nov 2014 16:20:40 +0000 Subject: [PATCH] Fixes the problem finding development.ini 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. --- ckan/lib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/lib/cli.py b/ckan/lib/cli.py index 70709acf3dd..fa464ef510c 100644 --- a/ckan/lib/cli.py +++ b/ckan/lib/cli.py @@ -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):