This commit is contained in:
Kovid Goyal 2008-03-17 19:15:46 +00:00
parent 690c7ae32c
commit 0983dbeafd

View File

@ -375,7 +375,7 @@ def launch(path_or_url):
elif isosx: elif isosx:
subprocess.Popen(('open', path_or_url)) subprocess.Popen(('open', path_or_url))
elif iswindows: elif iswindows:
import win32api win32api = __import__('win32api', globals(), locals(), [], -1)
win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 1) win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 1)
def relpath(target, base=os.curdir): def relpath(target, base=os.curdir):