[Zope] How to get $PRODUCT_HOME
roman_plonemail at lotuseyes.de
Tue Feb 7 09:04:55 EST 2006
Tino Wildenhain schrieb:
>> How can I get the path to the product folder?
>> Thanks in advance!
> see the __file__ variable in your module.
> for example via:
> you get the absolute path of the directory
> where your module is. Complete it to:
> to get the full path of your file os independent
> (e.g. works the same with unix,windows,mac os...)
wow, yes also interesting. In case one needs to get the path of an individual module.
For my current task I went with Andrew's proposal and used package_home(globals()). That seems to work well.
But your suggestion will be helpful in some other thing I have in mind ...
More information about the Zope