From 1d62f492b0dd336db16f2893671695544136b7b5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sun, 3 Sep 2000 17:12:50 +0000 Subject: Hack the Windows code to use os.popen(). The returned file is assigned to an instance variable; otherwise the implied close hangs for a long time. --- Lib/webbrowser.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 5a4a80f..66cdbff 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -183,9 +183,7 @@ register("grail", Grail) class WindowsDefault: def open(self, url, new=0): - import win32api, win32con - win32api.ShellExecute(0, "open", url, None, ".", - win32con.SW_SHOWNORMAL) + self.junk = os.popen("start " + url) def open_new(self, url): self.open(url) -- cgit v0.12