mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 22:06:53 +08:00
Upgrade syntax using `pyupgrade --py36-plus` . Manually drop several `six` imports. Also: - Remove broken pr_cache in scripts/bootstrap_history.py - Fix broken prefix removal in lib/galaxy/tool_util/deps/mulled/mulled_build.py
23 lines
450 B
Python
Executable File
23 lines
450 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
|
|
import sys
|
|
|
|
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'lib')))
|
|
|
|
from galaxy.util.pastescript import serve
|
|
from check_python import check_python # noqa: I100, I201
|
|
|
|
# ensure supported version
|
|
try:
|
|
check_python()
|
|
except Exception:
|
|
sys.exit(1)
|
|
|
|
serve.run()
|