moksha/lib/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 277fa3e23d8a3944cfc4dcc9133f4e78aa4b0d18 Author: Luke Macken lmacken@redhat.com Date: Mon Dec 7 16:42:12 2009 -0500
Look in the current directory for a config file
diff --git a/moksha/lib/helpers.py b/moksha/lib/helpers.py index 8ba747f..496c576 100644 --- a/moksha/lib/helpers.py +++ b/moksha/lib/helpers.py @@ -763,7 +763,7 @@ def in_full_moksha_stack():
def get_main_app_config_path(): """ - :returns: The path to the main applications configuratoin file + :returns: The path to the main applications configuration file """ try: return pylons.config['__file__'] @@ -780,7 +780,7 @@ def get_moksha_config_path(): return get_main_app_config_path() else: for config_file in ('production.ini', 'development.ini'): - for config_path in ('/etc/moksha/', __file__ + '/../../../'): + for config_path in ('.', '/etc/moksha/', __file__ + '/../../../'): cfg = os.path.join(os.path.abspath(config_path), config_file) if os.path.isfile(cfg): return cfg