[python-win32] activate an opened window through the server
belaqziz salwa
belasalwa at yahoo.fr
Fri Apr 24 11:37:48 CEST 2009
I used subprocess.call but I had the following message:
Could not import process : (-2147217405, 'OLE error 0x80041003', None, None)
I added this code to my process:
cmd = 'idlde.exe -minimized -nodemowarn -noconfirmexit -nosplash @C:\SAMIR\soil.run'
retval = subprocess.call(cmd, 0, None, None)
And I run it with:
http://localhost/wps/wps.py?version=1.0.0&service=Wps&request=Execute&Identifier=soil_process
but it does not works
thanks for help
--- En date de : Ven 24.4.09, Tim Roberts <timr at probo.com> a écrit :
De: Tim Roberts <timr at probo.com>
Objet: Re: [python-win32] activate an opened window through the server
À: "python-win32" <python-win32 at python.org>
Date: Vendredi 24 Avril 2009, 1h34
belaqziz salwa wrote:
> yes my IDL script produces an image file, i want just execute this
> progmam, and not to send an HTML image. how can i do that ?
>
You'll have to dig into PyWPS for the details, but I think your PyWPS
script just needs to run idlde.exe as a separate process, using that
command you already showed. You can use subprocess.call to run that
command and wait for the result.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20090424/43febf91/attachment-0001.htm>
More information about the python-win32
mailing list