Skip to content

Commit

Permalink
Enable stopping conda activation
Browse files Browse the repository at this point in the history
Filter duplicate mounts
  • Loading branch information
Henrik Nortamo committed Jan 19, 2023
1 parent 14995d2 commit a795784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_wrappers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ else
echo "export SINGULARITY_BIND=\$SINGULARITY_BIND,\$DIR/../\$SQFS_IMAGE:\$INSTALLATION_PATH:image-src=/" >> _deploy/common.sh
fi
echo "if [[ \${CW_EXTRA_BIND_MOUNTS+defined} ]]; then
export SINGULARITY_BIND=\$SINGULARITY_BIND:\$CW_EXTRA_BIND_MOUNTS
export SINGULARITY_BIND=\$SINGULARITY_BIND:\$(echo \$CW_EXTRA_BIND_MOUNTS | sed \"s@\$_C_DIR/\$SQFS_IMAGE:\$INSTALLATION_PATH:image-src=/@@g\")
fi" >> _deploy/common.sh


Expand Down Expand Up @@ -216,7 +216,7 @@ if [[ \${_CW_IN_CONTAINER+defined} ]];then
else" >> _deploy/bin/$target
if [[ ${CONDA_CMD+defined} ]];then
echo "
if [[ -e \$(/usr/bin/dirname \$_O_SOURCE )/../pyvenv.cfg && ! \${CW_FORCE_CONDA_ACTIVATE+defined} ]];then
if [[ ( -e \$(/usr/bin/dirname \$_O_SOURCE )/../pyvenv.cfg && ! \${CW_FORCE_CONDA_ACTIVATE+defined} ) || \${CW_NO_CONDA_ACTIVATE+defined} ]];then
export PATH=\"\$OLD_PATH\"
$_RUN_CMD $_default_cws exec -a \$_O_SOURCE \$DIR/$target $_cwe
else
Expand Down

0 comments on commit a795784

Please sign in to comment.