Skip to content

Commit d799d39

Browse files
committed
Only report python location if debugging
1 parent dc73dec commit d799d39

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

turbine/code/scripts/submit/psij/turbine-psij-run.zsh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ done
4141

4242
cd $TURBINE_OUTPUT
4343

44-
# Set debugging for PSIJ
45-
export PSIJ_DEBUG=1
46-
4744
# Report the environment to a sorted file for debugging:
4845
printenv -0 | sort -z | tr '\0' '\n' > turbine-env.txt
4946

50-
which python
47+
if (( ${TURBINE_DEBUG:-0} || ${PSIJ_DEBUG:-0} ))
48+
then
49+
printf "using python: "
50+
which python
51+
fi
5152
set -x
5253
python ${TURBINE_HOME}/scripts/submit/psij/turbine2psij.py 2>&1
5354
# Return exit code from python

0 commit comments

Comments
 (0)