]> granicus.if.org Git - python/commitdiff
Patch #484847: Default to netscape.exe on OS/2.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 25 Nov 2001 14:35:58 +0000 (14:35 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 25 Nov 2001 14:35:58 +0000 (14:35 +0000)
Lib/webbrowser.py
Misc/NEWS

index e766771190f9eb111c036dd4b27470943d046cce..ca4976a30f716385ccefbd03c0cde58d39dffcd3 100644 (file)
@@ -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.
 #
index c74e619d07bc5706958b1a306f685b9df19633c5..0b802d833dfeb09c9a7fa8034981dcdaf0d5f5cf 100644 (file)
--- 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