Skip to content
Snippets Groups Projects
Commit 53078b42 authored by Nate Coraor's avatar Nate Coraor
Browse files

Job script template from Galaxy

parent fb51097f
No related branches found
No related tags found
No related merge requests found
#!$shell
$headers
_galaxy_setup_environment() {
local _use_framework_galaxy="$1"
if [ "$GALAXY_LIB" != "None" -a "$_use_framework_galaxy" = "True" ]; then
......@@ -11,18 +13,17 @@ _galaxy_setup_environment() {
export PYTHONPATH
fi
$env_setup_commands
if [ "$GALAXY_VIRTUAL_ENV" != "None" -a "$_use_framework_galaxy" = "True" \
-a -f "$GALAXY_VIRTUAL_ENV/bin/activate" \
if [ "$GALAXY_VIRTUAL_ENV" != "None" -a -f "$GALAXY_VIRTUAL_ENV/bin/activate" \
-a "`command -v python`" != "$GALAXY_VIRTUAL_ENV/bin/python" ]; then
. "$GALAXY_VIRTUAL_ENV/bin/activate"
fi
}
$headers
$integrity_injection
$slots_statement
export GALAXY_SLOTS
GALAXY_VIRTUAL_ENV="$galaxy_virtual_env"
_GALAXY_VIRTUAL_ENV="$galaxy_virtual_env"
PRESERVE_GALAXY_ENVIRONMENT="$preserve_python_environment"
GALAXY_LIB="$galaxy_lib"
_galaxy_setup_environment "$PRESERVE_GALAXY_ENVIRONMENT"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment