os.popen3 with windows; help?
cappy2112 at gmail.com
Thu Oct 28 21:10:44 CEST 2004
Michele Petrazzo <michele.petrazzo at TOGLIunipex.it> wrote in message
> The problem is that there are spaces into the path. Try to user
> os.popen3('"C:\\Program\ Files\\ds9\\ds9"').
> The better choice is:
> path_complete = os.path.join('c:\\', 'Program Files', 'ds', 'ds9')
> os.popen3('"'+ path_complete +'"' )
> It work for me.
Try using raw strings, as I had posted in my reply.
Then you don't have to mess with joining strings, or using double
backslashes, or qoutes within quotes.
More information about the Python-list