diff options
author | pjotrp | 2016-02-13 16:15:38 +0100 |
---|---|---|
committer | Pjotr Prins | 2016-04-20 08:19:07 +0000 |
commit | 0ddefeab559746b6ab89a20e07edc1c04ee76e28 (patch) | |
tree | ccbf0179856961bf10001eb37670c54475309b41 /bin | |
parent | b0ae93454b6c7ef0ed40a9df36d4e30d19eb1fc9 (diff) | |
download | genenetwork2-0ddefeab559746b6ab89a20e07edc1c04ee76e28.tar.gz |
* bin/genenetwork2: path handling
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/genenetwork2 | 12 |
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 |