diff --git a/upcean/support.py b/upcean/support.py index cae4cf4c..2fd58068 100644 --- a/upcean/support.py +++ b/upcean/support.py @@ -40,7 +40,7 @@ def get_importing_script_path(): __use_env_file__ = True __use_ini_file__ = True if('PYUPCEAN_CONFIG_FILE' in os.environ and os.path.exists(os.environ['PYUPCEAN_CONFIG_FILE']) and __use_env_file__): - scriptconf = os.path.join(os.path.dirname(get_importing_script_path()), "upcean.ini") + scriptconf = os.environ['PYUPCEAN_CONFIG_FILE'] else: scriptconf = os.path.join(os.path.dirname(get_importing_script_path()), "upcean.ini") if os.path.exists(scriptconf):