summaryrefslogtreecommitdiffstats
path: root/Lib/webbrowser.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-11-25 14:35:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-11-25 14:35:58 (GMT)
commit3a89b2b13134767475c8e0c14381c1a722d7b836 (patch)
tree23aa4b6daee3b42cd83e192247588f1dc37ffd13 /Lib/webbrowser.py
parent90c45142d7c8b018d099a832af8c856ef4d9f8c9 (diff)
downloadcpython-3a89b2b13134767475c8e0c14381c1a722d7b836.zip
cpython-3a89b2b13134767475c8e0c14381c1a722d7b836.tar.gz
cpython-3a89b2b13134767475c8e0c14381c1a722d7b836.tar.bz2
Patch #484847: Default to netscape.exe on OS/2.
Diffstat (limited to 'Lib/webbrowser.py')
-rw-r--r--Lib/webbrowser.py10
1 files changed, 10 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.
#