From 3a89b2b13134767475c8e0c14381c1a722d7b836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 25 Nov 2001 14:35:58 +0000 Subject: [PATCH] Patch #484847: Default to netscape.exe on OS/2. --- Lib/webbrowser.py | 10 ++++++++++ Misc/NEWS | 2 ++ 2 files changed, 12 insertions(+) diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index e766771190f..ca4976a30f7 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 c74e619d07b..0b802d833df 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