diff options
author | Muriithi Frederick Muriuki | 2018-01-19 10:36:19 +0300 |
---|---|---|
committer | Pjotr Prins | 2018-03-26 09:24:34 +0000 |
commit | 941e42ef72bd6aa6761c35cf78e64df41977c5d3 (patch) | |
tree | 1a23d112bb63a6b2f976b2888fd3ef0fa33a469e | |
parent | 2524691b03cb629eb79e4d11c8ce8e451a5cd870 (diff) | |
download | genenetwork2-941e42ef72bd6aa6761c35cf78e64df41977c5d3.tar.gz |
Add elasticsearch module to the path
* Add some code to set up the path for the python-elasticsearch module.
-rwxr-xr-x | bin/genenetwork2 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/genenetwork2 b/bin/genenetwork2 index 8886e4bc..3fe8baa0 100755 --- a/bin/genenetwork2 +++ b/bin/genenetwork2 @@ -95,6 +95,11 @@ export WQFLASK_OVERRIDES=$overrides # JSON echo WQFLASK_SETTINGS=$settings echo WQFLASK_OVERRIDES=$overrides +if [ -z $ELASTICSEARCH_PROFILE ]; then + echo -e "\033[1;33mWARNING: Elastic Search profile has not been set - use ELASTICSEARCH_PROFILE\033[0m"; +else + PYTHONPATH="$PYTHONPATH${PYTHONPATH:+:}$ELASTICSEARCH_PROFILE/lib/python2.7/site-packages" +fi if [ -z $GN2_PROFILE ] ; then echo "WARNING: GN2_PROFILE has not been set - you need the environment, so I hope you know what you are doing!" export GN2_PROFILE=$(dirname $(dirname $(which genenetwork2))) @@ -108,7 +113,7 @@ if [ -z $GN2_PROFILE ]; then read -p "PRESS [ENTER] TO CONTINUE..." else export PATH=$GN2_PROFILE/bin:$PATH - export PYTHONPATH=$GN2_PROFILE/lib/python2.7/site-packages + export PYTHONPATH="$GN2_PROFILE/lib/python2.7/site-packages${PYTHONPATH:+:}$PYTHONPATH" export R_LIBS_SITE=$GN2_PROFILE/site-library export GEM_PATH=$GN2_PROFILE/lib/ruby/gems/2.4.0 export JS_GUIX_PATH=$GN2_PROFILE/share/genenetwork2/javascript |