[Zope] How to get $PRODUCT_HOME
Andrew Milton
akm at theinternet.com.au
Tue Feb 7 05:30:02 EST 2006
+-------[ Roman Klesel ]----------------------
| Hello again,
|
| I just started with FS products and have trouble to figure some things out ...
|
| >From within zope I would like to call scripts that I provide in the product folder on the file system like eg.:
|
| handle = os.popen('gnuplot %s/bin/loadgraphs.gplt' % product_folder, 'r')
|
| How can I get the path to the product folder?
from Globals import package_home
package_home(globals())
should give you what you need.
--
Andrew Milton
akm at theinternet.com.au
More information about the Zope
mailing list