[Zope] define library path for python external method

Jonathan (dev101) dev101 at magma.ca
Mon May 11 08:37:38 EDT 2009


<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


More information about the Zope mailing list