Well that's the strange thing, I don't have a PYTHONPATH environment variable defined. Zope must have it's own PYTHONPATH defined somewhere but I haven't been able to find it. If I could find it, I'd just add my development directory to the path statement. I'm running Windows by the way. I don't know if that affects the answer. -----Original Message----- From: Peter Eis [mailto:eis@hagen-partner.de] Sent: Tuesday, February 24, 2004 1:05 PM To: Joe Goldthwaite Subject: Re: [Zope] External modules and import On Mon, Feb 23, 2004 at 02:58:24PM -0700, Joe Goldthwaite wrote:
I tried moving one simple class to a separate module called BarsDB. I
then
added a line "import BarsDB" to the top of the Externals.py module. I'm using Visual Python as my editor/debugger. Everything works fine from there but when I try to reload my external method (Externals.py), I get this error message;
ImportError: No module named BarsDB
Where do you define the Pythonpath for Zope?
one simle way to achive this is to edit the start script. add the line: export PYTHONPATH=$PYTHONPATH:./Extensions somewhere before the exec command. Still I'm curious if there are better ways to do this. Peter