[Tutor] Os.system on winXP system having trouble with spaces
indirectory names
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Fri Jul 16 20:55:28 CEST 2004
On Fri, 16 Jul 2004, Christian Wyglendowski wrote:
> Quoting your path should take care of it:
>
> os.system('start "C:\\Documents and
> Settings\\Smith_B2\\Desktop\\page.html"')
Hi Barrett,
Just an an aside: if you're specifically trying to open up a web page from
Python, you may want to look at the platform-independent 'webbrowser'
module:
http://www.python.org/doc/lib/module-webbrowser.html
'webbrowser' allows you to avoid doing using the Windows-specific 'start'
command; the example above could probably be done using a 'file:///' URI.
Good luck!
More information about the Tutor
mailing list