Kaydet (Commit) 1d62f492 authored tarafından 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.
üst ac1c818f
...@@ -183,9 +183,7 @@ register("grail", Grail) ...@@ -183,9 +183,7 @@ register("grail", Grail)
class WindowsDefault: class WindowsDefault:
def open(self, url, new=0): def open(self, url, new=0):
import win32api, win32con self.junk = os.popen("start " + url)
win32api.ShellExecute(0, "open", url, None, ".",
win32con.SW_SHOWNORMAL)
def open_new(self, url): def open_new(self, url):
self.open(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