Skip to content
Snippets Groups Projects
Commit 402e182a authored by Michael Langguth's avatar Michael Langguth
Browse files

Move generation of workflow-runscripts in 'ecreat_env.sh' out of if-clause in...

Move generation of workflow-runscripts in 'ecreat_env.sh' out of if-clause in order to enable creation in case of pre-existing virtual environment.
parent d2849227
No related branches found
No related tags found
No related merge requests found
Pipeline #46860 failed
...@@ -119,6 +119,12 @@ if [[ "$ENV_EXIST" == 0 ]]; then ...@@ -119,6 +119,12 @@ if [[ "$ENV_EXIST" == 0 ]]; then
if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == juwels* ]]; then if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == juwels* ]]; then
echo "export PYTHONPATH=${ENV_DIR}/lib/python3.6/site-packages:\$PYTHONPATH" >> ${activate_virt_env} echo "export PYTHONPATH=${ENV_DIR}/lib/python3.6/site-packages:\$PYTHONPATH" >> ${activate_virt_env}
fi fi
done
elif [[ "$ENV_EXIST" == 1 ]]; then
# activating virtual env is suifficient
source ${ENV_DIR}/bin/activate
fi
# Finish by creating runscripts
# After checking and setting up the virt env, create user-specific runscripts for all steps of the workflow # After checking and setting up the virt env, create user-specific runscripts for all steps of the workflow
if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == juwels* ]]; then if [[ "${HOST_NAME}" == hdfml* || "${HOST_NAME}" == juwels* ]]; then
echo "***** Creating Batch-scripts for running workflow... *****" echo "***** Creating Batch-scripts for running workflow... *****"
...@@ -135,10 +141,5 @@ if [[ "$ENV_EXIST" == 0 ]]; then ...@@ -135,10 +141,5 @@ if [[ "$ENV_EXIST" == 0 ]]; then
else else
./generate_workflow_runscripts.sh ${curr_script} ${ENV_NAME} -exp_id=${exp_id} ./generate_workflow_runscripts.sh ${curr_script} ${ENV_NAME} -exp_id=${exp_id}
fi fi
done
# *** finished ***
elif [[ "$ENV_EXIST" == 1 ]]; then
# activating virtual env is suifficient
source ${ENV_DIR}/bin/activate
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment