From: Martin v. Löwis Date: Sun, 25 Nov 2001 14:35:58 +0000 (+0000) Subject: Patch #484847: Default to netscape.exe on OS/2. X-Git-Tag: v2.2.1c1~705 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a89b2b13134767475c8e0c14381c1a722d7b836;p=thirdparty%2FPython%2Fcpython.git Patch #484847: Default to netscape.exe on OS/2. --- diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index e766771190f9..ca4976a30f71 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. # diff --git a/Misc/NEWS b/Misc/NEWS index c74e619d07bc..0b802d833dfe 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,8 @@ Extension modules Library +- webbrowser defaults to netscape.exe on OS/2 now. + Tools/Demos Build