Ricardo Aráoz wrote:
>>>> import webbrowser
>>>> ff = webbrowser.get("S:\FirefoxPortable\FirefoxPortable.exe %s &")
>>>> ff.open('http://www.google.com')
> FalseBeware of backslashes in file paths - backslash introduces a character escape in Python strings. You can fix by any of - use \\ instead of \ - use / instead of \ (it works fine) - use raw strings (prefix with r) e.g. r"S:\FirefoxPortable\FirefoxPortable.exe %s &" Kent _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
