Message245351
| Author |
nedbat |
| Recipients |
nedbat |
| Date |
2015年06月14日.21:33:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1434317605.99.0.218705045555.issue24452@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This doesn't work on Python 3.4 on a Mac with Yosemite and Chrome installed:
import webbrowser
webbrowser.get("chrome")
This patch makes it work:
```
*** /usr/local/pythonz/pythons/CPython-3.4.1/lib/python3.4/webbrowser.py 2014年09月21日 16:37:46.000000000 -0400
--- /Users/ned/foo/webbrowser.py 2015年06月14日 17:31:28.000000000 -0400
***************
*** 605,614 ****
--- 605,615 ----
# Don't clear _tryorder or _browsers since OS X can use above Unix support
# (but we prefer using the OS X specific stuff)
register("safari", None, MacOSXOSAScript('safari'), -1)
register("firefox", None, MacOSXOSAScript('firefox'), -1)
+ register("chrome", None, MacOSXOSAScript('chrome'), -1)
register("MacOSX", None, MacOSXOSAScript('default'), -1)
# OK, now that we know what the default preference orders for each
# platform are, allow user to override them with the BROWSER variable.
``` |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年06月14日 21:33:26 | nedbat | set | recipients:
+ nedbat |
| 2015年06月14日 21:33:25 | nedbat | set | messageid: <1434317605.99.0.218705045555.issue24452@psf.upfronthosting.co.za> |
| 2015年06月14日 21:33:25 | nedbat | link | issue24452 messages |
| 2015年06月14日 21:33:25 | nedbat | create |
|