mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
fix pardir
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user