[Zope] Accessing to ZOPE_HOME

Dieter Maurer dieter at handshake.de
Mon Mar 21 13:24:31 EST 2005


Tino Wildenhain wrote at 2005-3-20 22:05 +0100:
> ...
>Looks like you are really looking for some files
>in context of your external method.
>
>Use something like:
>
>os.path.dirname(os.path.abspath(__file__))
>
>in your module containing the external method.

Note that this works in a normal Python module but
not inside an External Method.

External Methods are not imported but read.
Therefore, they lack the standard module attributes.

-- 
Dieter


More information about the Zope mailing list