jython - open docs in webBrowser?
Submitted by Monday, 26 July, 2010 - 12:58
on
I'm trying to figure out how to open html docs in a web browser using jython, but I'm not able to get the webbrowser to load.
I've tried the following:
import webbrowser
Error:
File "C:\Documents and Settings\Administrator\.jedit\macros
\MayaHelp.py", line 3, in ?
ImportError: no module named webbrowser
========================================
from org.gjt.sp.jedit import webBrowser
Which is found using autocompletion but nonetheless throws this error:
ImportError: cannot import name webBrowser
========================================
I also tried:
from org.gjt.sp.jedit import browser
which doesn't throw an import error, but it doesn't have 'open',
'openURL', or 'open_new_tab' attributes, so I assume that isn't a web browser.
Anyone know what I'm doing wrong?
Thanks.
I've tried the following:
import webbrowser
Error:
File "C:\Documents and Settings\Administrator\.jedit\macros
\MayaHelp.py", line 3, in ?
ImportError: no module named webbrowser
========================================
from org.gjt.sp.jedit import webBrowser
Which is found using autocompletion but nonetheless throws this error:
ImportError: cannot import name webBrowser
========================================
I also tried:
from org.gjt.sp.jedit import browser
which doesn't throw an import error, but it doesn't have 'open',
'openURL', or 'open_new_tab' attributes, so I assume that isn't a web browser.
Anyone know what I'm doing wrong?
Thanks.