mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
open tempfiles, including a traceback (to determine callers) if LOG_TEMPFILES is set in the environment when Galaxy starts. This should be considered temporary and will be removed when it's determined where/how this happens.
28 lines
582 B
Python
Executable File
28 lines
582 B
Python
Executable File
"""
|
|
Bootstrap the Galaxy framework.
|
|
|
|
This should not be called directly! Use the run.sh script in Galaxy's
|
|
top level directly.
|
|
"""
|
|
|
|
import os, sys
|
|
|
|
assert sys.version_info[:2] >= ( 2, 4 )
|
|
|
|
new_path = [ os.path.join( os.getcwd(), "lib" ) ]
|
|
new_path.extend( sys.path[1:] ) # remove scripts/ from the path
|
|
sys.path = new_path
|
|
|
|
from galaxy import eggs
|
|
import pkg_resources
|
|
|
|
if 'LOG_TEMPFILES' in os.environ:
|
|
from log_tempfile import TempFile
|
|
_log_tempfile = TempFile()
|
|
import tempfile
|
|
|
|
pkg_resources.require( "PasteScript" )
|
|
|
|
from paste.script import command
|
|
command.run()
|