From a693630f8330a04be0942a3acc27f0028ff7d8d1 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 12 Sep 2022 05:36:51 +0300 Subject: Cleanup `PYTHONPATH` Only add a value to the path if it is actually set --- bin/genenetwork2 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3