mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-29 17:42:12 +08:00
Partially lint scripts/ .
This commit is contained in:
+3
-8
@@ -5,12 +5,8 @@ This should not be called directly! Use the run.sh script in Galaxy's
|
||||
top level directly.
|
||||
"""
|
||||
|
||||
import os, sys
|
||||
|
||||
try:
|
||||
import configparser
|
||||
except:
|
||||
import ConfigParser as configparser
|
||||
import os
|
||||
import sys
|
||||
|
||||
# ensure supported version
|
||||
from check_python import check_python
|
||||
@@ -20,7 +16,7 @@ except:
|
||||
sys.exit( 1 )
|
||||
|
||||
new_path = [ os.path.join( os.getcwd(), "lib" ) ]
|
||||
new_path.extend( sys.path[1:] ) # remove scripts/ from the path
|
||||
new_path.extend( sys.path[1:] ) # remove scripts/ from the path
|
||||
sys.path = new_path
|
||||
|
||||
from galaxy import eggs
|
||||
@@ -28,7 +24,6 @@ from galaxy import eggs
|
||||
if 'LOG_TEMPFILES' in os.environ:
|
||||
from log_tempfile import TempFile
|
||||
_log_tempfile = TempFile()
|
||||
import tempfile
|
||||
|
||||
eggs.require( "Paste" )
|
||||
eggs.require( "PasteDeploy" )
|
||||
|
||||
Reference in New Issue
Block a user