os.popen3 with windows; help?

Anthony anthony.briggs at gmail.com
Fri Oct 29 16:02:22 CEST 2004


On Thu, 28 Oct 2004 15:58:34 -0700, Russell E. Owen <rowen at cesmail.net> wrote:
>>>>os.popen3(r"C:\Program\ Files\ds9\ds9")
> 
> I find this fails the same way as  not using r"..." and doubling the
> backslashes. Windows thinks the path to the executable stops at the
> space. (I tried os.popen3(r"C:\Program Files\ds9\ds9") and the less
> likely variant os.popen3(r"C:\Program\ Files\ds9\ds9"))

Have you tried a wildcard? ie. something like:

os.popen3(r"C:\Program*\ds9\ds9"))

Bit of a hack though :)

Anthony

-- 
-----------------------------------------------------
 HyPEraCtiVE? HeY, WhO aRE YoU cALliNg HypERaCtIve?!
 aNthONy.BrIGgS at gmAiL.CoM
-----------------------------------------------------



More information about the Python-list mailing list