execv/spawnv on windows

Chui Tey teyc at bigfoot.com
Fri Aug 25 21:57:50 EDT 2000


"Brian Elmegaard" <be at et.dtu.dk> wrote in message
news:39A510B4.72CF1996 at et.dtu.dk...
> Hi,
>
> I tried to run an application from python under win98. This worked if I
> did:
> gs=os.execv("c:\ees32\ees.exe",())
>
> However, if I do
> gs=os.execv("c:\Aladdin\gs6.0\bin\gswin32c.exe",())
>

The space in the path is causing pain to Win9x.
Try this:

scriptname = "c:\Aladdin\gs6.0\bin\gswin32c.exe"
gs = os.execv('"' + scriptname + '"')

Chui





More information about the Python-list mailing list