aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2021-12-01 14:30:00 +0000
committerPjotr Prins2021-12-01 14:30:00 +0000
commitd9843928fe5140c953078b5238c2ddb8fb12a96c (patch)
tree09b267bde3ce6884b722ca78a4cb85aea48cff1f
parent98282951acf8bf5ad8a344a8b0f55606ed9e3931 (diff)
downloadgenenetwork2-d9843928fe5140c953078b5238c2ddb8fb12a96c.tar.gz
Introduce GN3_PYTHONPATH environment variable
-rw-r--r--README.md6
-rwxr-xr-xbin/genenetwork22
2 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 6921d299..62ead0bd 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,12 @@ startup script [./bin/genenetwork2](https://github.com/genenetwork/genenetwork2/
Also mariadb and redis need to be running, see
[INSTALL](./doc/README.org).
+## Development
+
+It may be useful to pull in the GN3 python modules locally. For this
+use `GN3_PYTHONPATH` environment that gets injected in
+the ./bin/genenetwork2 startup.
+
## Testing
To have tests pass, the redis and mariadb instance should be running, because of
diff --git a/bin/genenetwork2 b/bin/genenetwork2
index 5f714d2e..b5c940a8 100755
--- a/bin/genenetwork2
+++ b/bin/genenetwork2
@@ -147,7 +147,7 @@ if [ ! -d $R_LIBS_SITE ] ; then
fi
# We may change this one:
-export PYTHONPATH=$PYTHON_GN_PATH:$GN2_BASE_DIR/wqflask:$PYTHONPATH
+export PYTHONPATH=$PYTHON_GN_PATH:$GN2_BASE_DIR/wqflask:$GN3_PYTHONPATH:$PYTHONPATH
# Our UNIX TMPDIR defaults to /tmp - change this on a shared server
if [ -z $TMPDIR ]; then