fix pardir

This commit is contained in:
E Rasche
2017-08-10 13:44:10 +02:00
parent 4297718202
commit bdbe360305
+2 -2
View File
@@ -16,7 +16,7 @@ import logging
from collections import defaultdict
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'lib')))
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 'lib')))
from galaxy.util.properties import load_app_properties
import galaxy
@@ -32,7 +32,7 @@ def _init(config, need_app=False):
if config.startswith('/'):
config_file = os.path.abspath(config)
else:
config_file = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, config))
config_file = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, config))
properties = load_app_properties(ini_file=config_file)
config = galaxy.config.Configuration(**properties)