diff options
author | Pjotr Prins | 2021-12-01 14:30:00 +0000 |
---|---|---|
committer | Pjotr Prins | 2021-12-01 14:30:00 +0000 |
commit | d9843928fe5140c953078b5238c2ddb8fb12a96c (patch) | |
tree | 09b267bde3ce6884b722ca78a4cb85aea48cff1f | |
parent | 98282951acf8bf5ad8a344a8b0f55606ed9e3931 (diff) | |
download | genenetwork2-d9843928fe5140c953078b5238c2ddb8fb12a96c.tar.gz |
Introduce GN3_PYTHONPATH environment variable
-rw-r--r-- | README.md | 6 | ||||
-rwxr-xr-x | bin/genenetwork2 | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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 |