aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-12 05:36:51 +0300
committerFrederick Muriuki Muriithi2022-09-12 05:37:46 +0300
commita693630f8330a04be0942a3acc27f0028ff7d8d1 (patch)
tree333f55f0d8dfff574525bbac5d0fab81899b0d8a
parent9966a9b09ef681728c04b2719ada8ff3f286b863 (diff)
downloadgenenetwork2-a693630f8330a04be0942a3acc27f0028ff7d8d1.tar.gz
Cleanup `PYTHONPATH`
Only add a value to the path if it is actually set
-rwxr-xr-xbin/genenetwork24
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index 36bf11a6..57fd8588 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -150,9 +150,7 @@ if [ ! -d "${R_LIBS_SITE}" ] ; then
fi
# We may change this one:
-export PYTHONPATH=$PYTHON_GN_PATH:$GN2_BASE_DIR/wqflask:$GN3_PYTHONPATH:$PYTHONPATH
-
-export PYTHONPATH="${GN3_DEV_REPO_PATH:+$GN3_DEV_REPO_PATH:}:${PYTHONPATH}"
+export PYTHONPATH="${PYTHON_GN_PATH:+$PYTHON_GN_PATH:}$GN2_BASE_DIR/wqflask:${GN3_PYTHONPATH:+$GN3_PYTHONPATH:}$PYTHONPATH"
# Our UNIX TMPDIR defaults to /tmp - change this on a shared server
if [ -z "${TMPDIR}" ]; then