Zope query: importing packages from External Methods

Andy McKay amckay at merlinsoftech.com
Tue Apr 2 12:28:29 EST 2002


> I have tried ZOPE\lib\python\Shared, PYTHON\site-packages, and even
> ZOPE\Extensions.

- If your module was named "Foo" you can put it in zope\lib\python and 
import Foo. 
- If you want it in zope\lib\python\Shared\DCK it would be from Shared.DCK 
import Foo. But you will need to add a blank __init__.py to the directory

Lastly you could just add it to your python installation, look for the lib 
folder containing all the other python modules
--
  Andy McKay




More information about the Python-list mailing list