This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dan.oreilly
Recipients dan.oreilly
Date 2014-07-21.20:16:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405973762.56.0.905297116521.issue22025@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, when webbrowser.get() is passed a "using" argument that consists of a command line string like "C:\Users\dan\AppData\Local\Google\Chrome\Application\chrome.exe %s", it will use shlex.split(command_line) to tokenize the string. However, when given Windows-style path separators (as is likely to be the case on Windows), shlex.split returns the path with all the separators removed:

>>> cmd = "C:\\Users\\oreild1\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe %s"
>>> shlex.split(cmd)
['C:Usersoreild1AppDataLocalGoogleChromeApplicationchrome.exe', '%s']

Of course, this means the browser object returned is useless. I'm not sure what the preferred way to fix this is: either document that POSIX-style path separators are required (even on Windows), or pass posix=False to shlex.split if we're running Windows.
History
Date User Action Args
2014-07-21 20:16:02dan.oreillysetrecipients: + dan.oreilly
2014-07-21 20:16:02dan.oreillysetmessageid: <1405973762.56.0.905297116521.issue22025@psf.upfronthosting.co.za>
2014-07-21 20:16:02dan.oreillylinkissue22025 messages
2014-07-21 20:16:02dan.oreillycreate