[Zope] os.system in external method

Tino Wildenhain tino@wildenhain.de
Fri, 17 Aug 2001 15:18:06 +0200


Hi Philippe,

--On Freitag, 17. August 2001 11:42 +0200 Philippe Jadin <philippe@123piano.com> wrote:

> Hello,
>
> I'm trying to execute an external command from an external method.
> Altough it works when I do it from the python console, like :
>
> $ python
>
>  >>> import os
>  >>> os.system("/usr/local/zope/instance/var/images/jpeg2swf ABALONE.JPG
> out.swf")

Did you try absolute paths for the images also? I suspect the
"current dir" for external methods is the zope root.

Regards
Tino