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

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to