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:
parent
ac1c818f13
commit
1d62f492b0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue