diff options
author | Guido van Rossum <guido@python.org> | 2000-09-03 17:12:50 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-03 17:12:50 (GMT) |
commit | 1d62f492b0dd336db16f2893671695544136b7b5 (patch) | |
tree | 58aa435a92eefb073ccbc104be34122d20ab0f36 | |
parent | ac1c818f13a3972bf4bd0558c32493d661f397b5 (diff) | |
download | cpython-1d62f492b0dd336db16f2893671695544136b7b5.zip cpython-1d62f492b0dd336db16f2893671695544136b7b5.tar.gz cpython-1d62f492b0dd336db16f2893671695544136b7b5.tar.bz2 |
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.
-rw-r--r-- | Lib/webbrowser.py | 4 |
1 files changed, 1 insertions, 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) |