[Zope] External Method Working Directory?

Chris Withers chris at simplistix.co.uk
Thu Sep 29 03:20:01 EDT 2005


jwithers wrote:

eep, another one, hope we're not related ;-)

> Can anyone tell me what the default working directory for an external
> method is?

You can't rely on it being anything. If you're working with files, you 
need to be very careful...

> Further, I need this to create a file temporarily in Extensions. 

Why?

> I would prefer not to have to hardwire the location of Extension into the
> code, since that would make the script non-portable to other instances easily.
> 
> Any advice on this would be appreciated.

I'd suggest looking at python's tempfile module...

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the Zope mailing list