I'd like to submit jobs into queue using PBS for my python code.
Normally, I first starts an IPython interpreter session by (bin/omero shell) and run my code within the session by
- Code: Select all
In [1]: execfile('mycode.py')
But I need to be online to complete my job this way.
When I tried
- Code: Select all
$ python mycode.py
then, I cannot import omero.
So, is there anyway to run my code without starting the IPython session (bin/omero shell)?
I tried something like
- Code: Select all
$bin/omero shell mycode.py
but it does not work.
Thanks in advance,
BK