os.popen3 with windows; help?
Tony C
cappy2112 at gmail.com
Thu Oct 28 15:10:44 EDT 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.
>
> Michele
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.
>>os.popen3(r"C:\Program\ Files\ds9\ds9")
More information about the Python-list
mailing list