Commit 1d62f492 authored by Guido van Rossum's avatar Guido van Rossum

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.
parent ac1c818f
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment