Skip to content
Snippets Groups Projects
Commit 92d529eb authored by masak1112's avatar masak1112
Browse files

fix the bug for virtual path in data extraction template

parent 8edf150f
No related branches found
No related tags found
No related merge requests found
Pipeline #97294 failed
......@@ -27,9 +27,9 @@ VIRT_ENV_NAME="my_venv"
source ../env_setup/modules_preprocess+extract.sh
# Activate virtual environment if needed (and possible)
if [ -z ${VIRTUAL_ENV} ]; then
if [[ -f ../${VIRT_ENV_NAME}/bin/activate ]]; then
if [[ -f ../virtual_envs/${VIRT_ENV_NAME}/bin/activate ]]; then
echo "Activating virtual environment..."
source ../${VIRT_ENV_NAME}/bin/activate
source ../virtual_envs/${VIRT_ENV_NAME}/bin/activate
else
echo "ERROR: Requested virtual environment ${VIRT_ENV_NAME} not found..."
exit 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment