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.
This commit is contained in:
Guido van Rossum 2000-09-03 17:12:50 +00:00
parent ac1c818f13
commit 1d62f492b0
1 changed files with 1 additions and 3 deletions

View File

@ -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)