[Zope] Relative paths in Extensions folder
Garikoitz Araolaza
gari@eibar.org
Tue, 09 Apr 2002 11:21:55 +0200
Hi!
Writing
p=open('myfile.txt','r')
in a Python module in Extensions folder doesn't work unless you give the
whole absolute path for the file:
p=open('/usr/zope/2.5.0/Extensions/myfile.txt','r')
Is there any way to define relative paths to the files in Extensions, so
that my app works in different systems?
(I was thinking about accessing the INSTANCE_HOME variable, for example...)
Thanks in advance
Gari
_________________________________________________________
Aurki Euskara hutsezko bilatzailea
http://www.aurki.com
Zure laguntza behar dugu. Egin zaitez editore!