os.popen3 with windows; help?

Sylvain Defresne "sdefresne " at gmail.com
Tue Oct 26 00:41:39 CEST 2004


> So I tried being specific:
> os.popen3("C:\\Program Files\\ds9\\ds9")
> This also fails and the program that is not found is "C:\Program", 
> suggesting that the space in "Program Files" is causing the problem. The 
> following failed in exactly the same way:
> os.popen3("C:\\Program\ Files\\ds9\\ds9")
> 
> Any suggestions?

I don't have a windows to test, but does the following works (that is
protecting the space from the shell by enclosing the path in double
quote) ?

    os.popen3('"C:\\Program Files\\ds9\\ds9.exe"')

-- 
keiichi




More information about the Python-list mailing list