aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpjotrp2016-03-01 09:13:30 +0000
committerPjotr Prins2016-04-20 09:59:40 +0000
commit8b2598efcf276ef6a1edd06921a9cc28dbfcad14 (patch)
tree65b20c8221b648017ca6c1110c1817cc7a0aebc2
parent2fd8e09c3de9ee539e47bdb416a4c0df89ff15ab (diff)
downloadgenenetwork2-8b2598efcf276ef6a1edd06921a9cc28dbfcad14.tar.gz
Handle settings in guix store
-rwxr-xr-xbin/genenetwork29
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index e5f04ee1..682d8b3d 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -11,12 +11,15 @@ SCRIPT=$(readlink -f "$0")
GN2_BASE_PATH=$(dirname $(dirname "$SCRIPT"))
echo $GN2_BASE_PATH
-# Handle setting parameter
+# Handle settings parameter
settings=$1
if [ -z $settings ]; then settings=$GN2_BASE_PATH/etc/default_settings.py ; fi
if [ ! -e $settings ]; then
- echo "ERROR: can not load settings file $settings"
- exit 1
+ settings=$GN2_BASE_PATH/lib/python2.7/site-packages/genenetwork2-2.0-py2.7.egg/etc/default_settings.py
+ if [ ! -e $settings ]; then
+ echo "ERROR: can not locate settings file - pass it in the command line"
+ exit 1
+ fi
fi
export WQFLASK_SETTINGS=$settings