[Zope] Changing External Python Methods
Dieter Maurer
dieter@handshake.de
Mon, 9 Sep 2002 20:28:51 +0200
Andreas Tille writes:
> ...
> For instance I just try to do some processing onto an image named
> bland.gif which is in the same folder of ZMI as the External Method.
> I've got a.
>
> Error Type: IOError
> Error Value: [Errno 2] No such file or directory: 'bland.gif'
You cannot access file in the "Extension" folders with bare (relative)
names. This has nothing to do with Zope but with you OS:
Relative file names are resolved with respect to the "current working
directory".
There are operating system commands to change it (which are
unsafe in a multi-threaded environment (like Zope)!).
Zope will use them only (if at all) during startup,
before threads are started. It cannot follow the various
extension folders.
Dieter