aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpjotrp2016-02-13 16:15:38 +0100
committerPjotr Prins2016-04-20 08:19:07 +0000
commit0ddefeab559746b6ab89a20e07edc1c04ee76e28 (patch)
treeccbf0179856961bf10001eb37670c54475309b41
parentb0ae93454b6c7ef0ed40a9df36d4e30d19eb1fc9 (diff)
downloadgenenetwork2-0ddefeab559746b6ab89a20e07edc1c04ee76e28.tar.gz
* bin/genenetwork2: path handling
-rwxr-xr-xbin/genenetwork212
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index 9cac31d5..d0177045 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -5,11 +5,11 @@
# Absolute path to this script, e.g. /home/user/bin/foo.sh
SCRIPT=$(readlink -f "$0")
# Absolute path this script is in, thus /home/user/bin
-SCRIPTPATH=$(dirname $(dirname "$SCRIPT"))
-echo $SCRIPTPATH
+GN2_BASE_PATH=$(dirname $(dirname "$SCRIPT"))
+echo $GN2_BASE_PATH
-export PROFILE=$SCRIPTPATH
-export PYTHONPATH=$PROFILE/wqflask:$PYTHONPATH
-export WQFLASK_SETTINGS=$PROFILE/etc/default_settings.py
+export PYTHONPATH=$GN2_BASE_PATH/wqflask:$PYTHONPATH
+export WQFLASK_SETTINGS=$GN2_BASE_PATH/etc/default_settings.py
-/usr/bin/env python ./wqflask/runserver.py
+cd $GN2_BASE_PATH/wqflask
+/usr/bin/env python runserver.py