os.popen3 with windows; help?
pythonista at gmail.com
Tue Oct 26 02:26:31 CEST 2004
On Tue, 26 Oct 2004 00:41:39 +0200, "@gmail.com Sylvain Defresne
> > 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"')
Saint of Mild Amusement, Evil Genius, Big Geek
email: pythonista at gmail.com
quine = ['print "quine =",quine,"; exec(quine)"'] ; exec(quine)
More information about the Python-list