aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-09-05 16:42:52 +0300
committerMunyoki Kilyungi2023-09-05 16:42:52 +0300
commit5ebfcb223fe223de68c90dbac4116cf8384391c4 (patch)
tree09c3b0bb8569d403f76085d5212aff6e6dbacb69 /bin
parentc78d50fa95b6b92b0d025a4fbb590f4eb1bf0774 (diff)
downloadgenenetwork2-5ebfcb223fe223de68c90dbac4116cf8384391c4.tar.gz
Re-add hard-coded PYTHONPATH
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/genenetwork210
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index 6c42c21f..a03ad6ef 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -112,7 +112,7 @@ if [ -z "${GN2_PROFILE}" ]; then
read -p "PRESS [ENTER] TO CONTINUE..."
else
export PATH=$GN2_PROFILE/bin:$PATH
- # export PYTHONPATH="$GN2_PROFILE/lib/python3.9/site-packages" # never inject another PYTHONPATH!!
+ export PYTHONPATH="$GN2_PROFILE/lib/python3.10/site-packages" # never inject another PYTHONPATH!!
export R_LIBS_SITE=$GN2_PROFILE/site-library
export JS_GUIX_PATH=$GN2_PROFILE/share/genenetwork2/javascript
export GUIX_GTK3_PATH="$GN2_PROFILE/lib/gtk-3.0"
@@ -133,10 +133,10 @@ else
done <<< "$PYTHONPATH"
if [ ! -d "${R_LIBS_SITE}" ] ; then echo "R_LIBS_SITE not valid ${R_LIBS_SITE}" ; exit 1 ; fi
fi
-# if [ -z "${PYTHONPATH}" ] ; then
-# echo "ERROR PYTHONPATH has not been set - use GN2_PROFILE!"
-# exit 1
-# fi
+if [ -z "${PYTHONPATH}" ] ; then
+ echo "ERROR PYTHONPATH has not been set - use GN2_PROFILE!"
+ exit 1
+fi
if [ ! -d "${R_LIBS_SITE}" ] ; then
echo "ERROR R_LIBS_SITE has not been set correctly (we only allow one path) - use GN2_PROFILE!"
echo "Paste into your shell the output of (for example)"