aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2016-10-07 06:10:06 +0000
committerPjotr Prins2016-10-07 06:10:06 +0000
commit28da8f4304f406b4eff5ad68757735a0cb524e94 (patch)
tree8053a54901e23c4eec2e6d1c26d36dc6ad45db8f
parent2759a22104f144f663210d8f8f89c7649b3acc5b (diff)
downloadgenenetwork2-28da8f4304f406b4eff5ad68757735a0cb524e94.tar.gz
Startup script: add profile to the PATH and set LC_ALL to default to C (should be changed some day)
-rwxr-xr-xbin/genenetwork212
1 files changed, 7 insertions, 5 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index 889401fd..d7d1c325 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -54,22 +54,24 @@ echo WQFLASK_OVERRIDES=$overrides
# ---- Checks and balances
if [ -z $GUIX_ETC ]; then
if [ -z $GN2_PROFILE ] ; then
- echo "WARNING: GN2_PROFILE has not been set - I hope you know what you are doing"
+ echo "WARNING: GN2_PROFILE has not been set - I hope you know what you are doing!"
else
+ export PATH=$GN2_PROFILE/bin:$PATH
export PYTHONPATH=$GN2_PROFILE/lib/python2.7/site-packages
export R_LIBS_SITE=$GN2_PROFILE/site-library
export GUIX_GTK3_PATH="$GN2_PROFILE/lib/gtk-3.0"
export GI_TYPELIB_PATH="$GN2_PROFILE/lib/girepository-1.0"
export XDG_DATA_DIRS="$GN2_PROFILE/share"
export GIO_EXTRA_MODULES="$GN2_PROFILE/lib/gio/modules"
+ export LC_ALL=C
fi
if [ -z $PYTHONPATH ] ; then
- echo "WARNING PYTHONPATH has not been set"
+ echo "WARNING PYTHONPATH has not been set - use GN2_PROFILE!"
fi
if [ ! -d $R_LIBS_SITE ] ; then
- echo "ERROR: R_LIBS_SITE has not been set correctly (we only allow one path)"
- echo "Paste in the output of, for example,"
- echo "guix package -p /usr/local/guix-profiles/gn2-staging --search-paths"
+ 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)"
+ echo "guix package -p \$GN2_PROFILE --search-paths"
exit 1
fi
fi