[Zope] Errorno 2

Dieter Maurer dieter@handshake.de
Tue, 18 Jun 2002 21:34:49 +0200


oliver.erlewein@sqs.de writes:
 > I'm experiencing a problem, wihich I can't pinpoint. I've written a small external python script, which writes a logline into a sequential file. Nothing komplex. This gets called whenever a webpage gets called. Now I get the following error:
 > IOError, Errno 2: File or directory not found: <filename>.log
Do you use something that changes the current working directory?

  ZCVSFolder is one example that does this. But, there may be other products.

Catch the error, and check "os.getcdw()" in the "except" clause.


Dieter