diff options
-rw-r--r-- | Lib/webbrowser.py | 10 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index e766771..ca4976a 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -116,6 +116,7 @@ class Netscape: cmd = "%s %s -remote '%s' >/dev/null 2>&1" % (self.name, raise_opt, action) + print cmd rc = os.system(cmd) if rc: import time @@ -298,6 +299,15 @@ else: _tryorder = ("internet-config") register("internet-config", InternetConfig) +# +# Platform support for OS/2 +# + +if sys.platform[:3] == "os2" and _iscommand("netscape.exe"): + _tryorder = ("os2netscape",) + register("os2netscape", None, + GenericBrowser("start netscape.exe %s")) + # OK, now that we know what the default preference orders for each # platform are, allow user to override them with the BROWSER variable. # @@ -12,6 +12,8 @@ Extension modules Library +- webbrowser defaults to netscape.exe on OS/2 now. + Tools/Demos Build |