2005/10/13, DS <[EMAIL PROTECTED]>: > Hi, I am just learning Zope, and I wanted to try external methods. I > first tried a symlink in the Extension directory, but zope reported it > couldn't find it. I then copied the file into the Extension directory > and was successful at that. I assume that happened that way perhaps for > my own protection. Is that true? Or, is there a better way to do > that? I have a project directory where I have been working on modules, > and I was hoping to avoid copying them periodically to Extensions as I > test one thing or another.
Symbolic link or hard copy, to Zope it shouldn't matter. Python doesn't really make a difference between not finding a file and finding it but can't open it due to security permissions. Check permissions on it. > > My next question is that I import other modules within the module that I > just mentioned. I have copied them over to Extension, but still have an > error that they are not found. Am I trying to do something prohibited > with Zope. What controls that? > <zopedir>/Extensions is NOT part of the PYTHONPATH Don't stick your additional module in Extensions, put them somewhere else like /home/ds/foobar then in your one python file in Extensions you can do: import sys sys.path.append(r'/home/ds/foobar') from foobar import Whatever > Thanks very much for any help you can give me. > > ds > _______________________________________________ > Zope maillist - Zope@zope.org > http://mail.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope-dev ) > -- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )