[Zope] "import" within external method file doesn't work

Christian Selig christian@newopenness.de
Tue, 28 Dec 1999 15:34:06 +0100


Rik Hoekstra wrote:
> too much newbie ;-)
> The point is that the python modules in the Extensions directory are
> not really modules _and_ they cannot import from the Extensions
> directory itself. You should put your module_to_be_imported somewhere
> in a directory in the pythonpath.
> <zopehome>/lib/python/Shared/<yourstuff> is a good place. Don't
> forget to add a (presumable empty) __init__.py module in the
> <yourstuff> directory. The module may then be imported by the python
> statement
> import Shared.<yourstuff>.yourmodule or
> from Shared.yourstuff import yourmodule.

Okay, thans, it works now :-)

Christian

-- 
  \|/ ____ \|/  http://www.bnv-bamberg.de/home/sledge/
  "@'/ ,. \'@"  http://www.newopenness.de/lug-bamberg/ (LUG Bamberg)
  /_| \__/ |_\   
     \__U_/     http://fsub.schule.de/ (Freie Software und Bildung)