define library path for python external method
Hi, I use python script as an external method, Do you know how to define the python libraries path. I get an error No module named ..... My program run file when all code is in file or from python directly. Thanks Dganit
<snip> I use python script as an external method, Do you know how to define the python libraries path. I get an error No module named ..... </snip> Here is something I use in external methods: EXTDIR = '/apps/zope/Extensions' import sys if EXTDIR not in sys.path: sys.path.append(EXTDIR) hth Jonathan
You add the additional path to etc/zope.conf using the 'path' directive. Stefan On 11.05.2009, at 13:22, Dganit David wrote:
Hi,
I use python script as an external method, Do you know how to define the python libraries path. I get an error No module named …..
My program run file when all code is in file or from python directly.
Thanks Dganit
participants (3)
-
Dganit David -
Jonathan (dev101) -
Stefan H. Holek