diff --git a/create_db.sh b/create_db.sh index 976d279e09b..e5eee61383c 100755 --- a/create_db.sh +++ b/create_db.sh @@ -1,5 +1,6 @@ #!/bin/sh +cd `dirname $0` : ${GALAXY_VIRTUAL_ENV:=.venv} if [ -d "$GALAXY_VIRTUAL_ENV" ]; @@ -8,5 +9,4 @@ then . "$GALAXY_VIRTUAL_ENV/bin/activate" fi -cd `dirname $0` python ./scripts/create_db.py $@ diff --git a/extract_dataset_parts.sh b/extract_dataset_parts.sh index 26f915c0c3d..840adc70a24 100755 --- a/extract_dataset_parts.sh +++ b/extract_dataset_parts.sh @@ -1,6 +1,14 @@ #!/bin/sh cd `dirname $0` +: ${GALAXY_VIRTUAL_ENV:=.venv} + +if [ -d "$GALAXY_VIRTUAL_ENV" ]; +then + printf "Activating virtualenv at $GALAXY_VIRTUAL_ENV\n" + . "$GALAXY_VIRTUAL_ENV/bin/activate" +fi + for file in $1/split_info*.json do # echo processing $file diff --git a/manage_db.sh b/manage_db.sh index 6d4f3423d9b..80c01a49f75 100755 --- a/manage_db.sh +++ b/manage_db.sh @@ -5,6 +5,7 @@ # sh manage_db.sh downgrade --version=3 ####### +cd `dirname $0` : ${GALAXY_VIRTUAL_ENV:=.venv} if [ -d "$GALAXY_VIRTUAL_ENV" ]; @@ -13,5 +14,4 @@ then . "$GALAXY_VIRTUAL_ENV/bin/activate" fi -cd `dirname $0` python ./scripts/manage_db.py $@ diff --git a/manage_tools.sh b/manage_tools.sh index 67473f99782..234d1d85fd5 100644 --- a/manage_tools.sh +++ b/manage_tools.sh @@ -1,5 +1,6 @@ #!/bin/sh +cd `dirname $0` : ${GALAXY_VIRTUAL_ENV:=.venv} if [ -d "$GALAXY_VIRTUAL_ENV" ]; @@ -8,5 +9,4 @@ then . "$GALAXY_VIRTUAL_ENV/bin/activate" fi -cd `dirname $0` python ./scripts/manage_tools.py $@