[Zope-dev] is INSTANCE_HOME broken on Win32?
Chris Withers
chrisw@nipltd.com
Mon, 11 Sep 2000 16:09:17 +0100
Hello :-)
I'm trying to make Squishdot work with INSTANCE_HOME nicely.
However, the testing is going wrong on a normal Win32 Install...
I had lots of lines that went something like:
f=open('%s/Products/%s.dtml' % (SOFTWARE_HOME,file))
Which generates:
E:\Zope\2.2.0\lib\python/Products/Squishdot/validArticle.dtml
That's not very nice in itself but seems to work with Python's open...
However, when I change them all to be like, for example:
f=open('%s/Products/%s.dtml' % (INSTANCE_HOME,file))
I then get:
'E:\\Zope\\2.2.0/Products/Squishdot/validArticle.dtml'
which is:
- horrible
- wrong
- doesn't work ;-)
Anyway, I'm looking for something like INSTANCE_HOME or SOFTWARE_HOME
that:
- works in an INSTANCE_HOME setup
- works in a non-INSTANCE_HOME setup
- works on both Unix and Windows..
Any ideas?
cheers,
Chris