RE: [Zope] How do you call a shell command from an external method
25 Sep
2002
25 Sep
'02
10:53 p.m.
[ Friedlander Paul]
I have been trying to get Ploticus to work from an external method with no luck. I put the file (pl.exe) in the Extensions directory for the quick test and used the following code"
import os
def test(self): result = os.system("c:\\Progra~1\\WebSite\\Extensions\\pl gantt.pl -gif -o test.gif") return result
If I run the command from the prompt it works great. When I call this function from Zope I get a return value of 1 and no file is created. I have tried numerous variations on the path with no luck.
Does anyone know how I can shell out to the program?
Call it from an External Method. Cheers, Tom P
8594
Age (days ago)
8594
Last active (days ago)
0 comments
1 participants
participants (1)
-
Passin, Tom