os.popen3 with windows; help?

Sylvain Defresne "sdefresne " at gmail.com
Mon Oct 25 18:41:39 EDT 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