ome / omero-test-infra

Test infrastructure for decoupled repositories
BSD 2-Clause "Simplified" License
3 stars 13 forks source link

Set up PYTHONPATH for all subscripts #4

Closed joshmoore closed 6 years ago

joshmoore commented 6 years ago

See https://github.com/imagej/imagej-omero/commit/fd5a6f03c2e63a33ef6b4fead2d8f2a5ee64d31b

+
 +export OMERO_PREFIX=/opt/omero/server/OMERO.server
 +export PYTHONPATH=$OMERO_PREFIX/lib/python
 +
 +python /imagej-omero/.omeroci/create-table.py
awalter17 commented 6 years ago

@joshmoore You don't need the OMERO_PREFIX variable. I was just following the documentation here.

Realistically, if you want to add python support to the omero-server docker container you just need to add

export PYTHONPATH=(path_to_your_omero_server)/lib/python

to the Dockerfile or some env file.