os.popen3 with windows; help?

Sean Blakey pythonista at gmail.com
Mon Oct 25 20:26:31 EDT 2004


On Tue, 26 Oct 2004 00:41:39 +0200, "@gmail.com Sylvain Defresne
<"sdefresne> wrote:
> > 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
> 
> 
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
> 


-- 
Sean Blakey
Saint of Mild Amusement, Evil Genius, Big Geek
Python/Java/C++/C(Unix/Windows/Palm/Web) developer
email: pythonista at gmail.com
quine = ['print "quine =",quine,"; exec(quine[0])"'] ; exec(quine[0])



More information about the Python-list mailing list