Issue1762054
Created on 2007-07-27.15:12:12 by arjaan, last changed 2008-12-15.19:00:50 by fwierzbicki.
| msg3034 (view) |
Author: arjaan (arjaan) |
Date: 2007-07-27.15:12:12 |
|
Is it possible to add the webbrowser module, so this script can run with jython?
import webbrowser
url = 'http://www.python.org'
webbrowser.open_new(url)
|
| msg3079 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2008-03-10.01:46:36 |
|
I'd really like to add the webbrowser module (Paste imports it) but
unfortunately it's kind of useless without the platform specific ic
module.
Without ic it will try spawning console browsers on POSIX systems via
os.system. The problem with that is our os.system can't share the jython
process's stdin with the child webbrowser process (a limitation of
Java), so you can't actually use the browser.
Java 1.6 provides similar functionality via java.awt.Desktop.browse. We
could utilize that (it will refuse to work on a headless environment
though)
|
|
| Date |
User |
Action |
Args |
| 2008-12-15 19:00:50 | fwierzbicki | set | components:
+ Library, - None |
| 2008-11-03 20:59:39 | fwierzbicki | set | nosy:
+ fwierzbicki |
| 2008-03-10 01:46:36 | pjenvey | set | nosy:
+ pjenvey messages:
+ msg3079 |
| 2007-07-27 15:12:12 | arjaan | create | |
|