[Zope-dev] Product directory?
Andreas Kostyrka
andreas at mtg.co.at
Tue Mar 9 14:09:50 EST 2004
On Tue, Mar 09, 2004 at 01:58:17PM -0500, Ian Beatty wrote:
> Greetings again.
>
> This has to be an easy one.
>
> >From within my Python-based product's code, how do I get access to the
> product's directory on the filesystem? os.getcwd() seems to provide the
> working directory of the shell used to launch Zope, at least when running in
> debug mode.
Try os.path.dirname(mymodule.__file__)?
Andreas
More information about the Zope-Dev
mailing list