11 Jan
2003
11 Jan
'03
6:59 p.m.
beno wrote at 2003-1-11 12:21 -0400:
I have a python module that performs flawlessly from the Linux command prompt, but when I put it in my Extensions dir and try to import it, HTTP Error 500 is thrown. What went wrong? File in the Extensions folder are not meant to be imported (but read in a special way, only by Zope).
But your files to be imported elsewhere. The suggested place would be "lib/python/...", if you are using an "INSTANCE_HOME" (search "Zope.org" for an explanation) setup or "lib/python/Shared/<your_unique_name>/...". An alternative would be to include the "Extensions" folder in your PYTHONPATH (read the Python documentation, for details). Dieter