mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #5725 from nsoranzo/release_17.09_fix_cleanup_scripts
[17.09] Add Galaxy `lib` directory to Python path for 2 scripts
This commit is contained in:
@@ -53,6 +53,8 @@ from mako.template import Template
|
||||
from six.moves import configparser
|
||||
from sqlalchemy import and_, false
|
||||
|
||||
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 'lib')))
|
||||
|
||||
import galaxy.config
|
||||
import galaxy.model.mapping
|
||||
import galaxy.util
|
||||
|
||||
@@ -10,6 +10,8 @@ import sys
|
||||
|
||||
from six.moves import configparser
|
||||
|
||||
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 'lib')))
|
||||
|
||||
import galaxy.app
|
||||
|
||||
assert sys.version_info[:2] >= (2, 4)
|
||||
@@ -24,7 +26,7 @@ running.
|
||||
|
||||
|
||||
def main():
|
||||
if len(sys.argv) != 1 or sys.argv[1] == "-h" or sys.argv[1] == "--help":
|
||||
if len(sys.argv) != 2 or sys.argv[1] == "-h" or sys.argv[1] == "--help":
|
||||
usage(sys.argv[0])
|
||||
sys.exit()
|
||||
ini_file = sys.argv.pop(1)
|
||||
|
||||
Reference in New Issue
Block a user