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

Merge branch 'bing_issue#159_change_dir_for_runscript_in_create_env' into develop

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