This repository was archived by the owner on Dec 21, 2021. It is now read-only.
forked from ome/omero-user-scripts
-
Notifications
You must be signed in to change notification settings - Fork 4
cli_setup
Christian Evenhuis edited this page Mar 29, 2018
·
1 revision
conda create -n OMERO_CLI python=2.7 anaconda
Get the "OMERO python" package download
or directly from this link.
pip install zeroc-ice==3.6.4
Add the path to the library. Instructions from conda webpage
cd /Users/evenhuis/anaconda3/envs/OMERO_5.4_CLI
mkdir -p ./etc/conda/activate.d
mkdir -p ./etc/conda/deactivate.d
touch ./etc/conda/activate.d/env_vars.sh
touch ./etc/conda/deactivate.d/env_vars.sh
Add the following to the activate.d/env_vars.sh:
#!/bin/sh
export ORIGPATH=$PATH
export ORIGPYTHONPATH=$PYTHONPATH
export OMERO_PREFIX=~/Dropbox/MIF/OMERO/downloads_5.4.1/OMERO.py-5.4.1-ice36-b75
export PATH=$PATH:$PYTHONPATH:$OMERO_PREFIX/bin
export PYTHONPATH=$PYTHONPATH:$OMERO_PREFIX/lib/python
This appends the OMERO library to the search path. And the following in deactivate.d/env_vars.sh restores the path variabeles
export PATH=$ORIGPATH
export PYTHONPATH=$ORIGPYTHONPATH
unset ORIGPATH
unset ORIGPYTHONPATH
How to add key-value pairs from: