File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,12 @@ printf -- '%s\n' "_tmp_arr=(\$(echo \$SINGULARITYENV_PATH | /usr/bin/tr ':' '\n'
276
276
printf -- ' %s\n' " SINGULARITYENV_PATH=\$ (echo \"\$ {_tmp_arr[@]}\" | /usr/bin/tr ' ' ':')" >> _deploy/common.sh
277
277
printf -- ' %s\n' " _tmp_arr=(\$ (echo \$ SINGULARITYENV_LD_LIBRARY_PATH | /usr/bin/tr ':' '\n' ))" >> _deploy/common.sh
278
278
printf -- ' %s\n' " SINGULARITYENV_LD_LIBRARY_PATH=\$ (echo \"\$ {_tmp_arr[@]}\" | /usr/bin/tr ' ' ':')" >> _deploy/common.sh
279
+
280
+ # Keep Venv path if we wrap a container and create
281
+ if [[ " $CW_MODE " == " wrapcont" ]]; then
282
+ echo ' [[ ${VIRTUAL_ENV+defined} && "$(readlink -f $_C_DIR)/bin/python" = $(readlink -f $VIRTUAL_ENV/bin/python) ]] && SINGULARITYENV_PATH="$VIRTUAL_ENV/bin:$SINGULARITYENV_PATH"' >> _deploy/common.sh
283
+ fi
284
+
279
285
if [[ -f _extra_envs.sh ]]; then
280
286
cat _extra_envs.sh >> _deploy/common.sh
281
287
fi
You can’t perform that action at this time.
0 commit comments