mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
This commit is contained in:
parent
690c7ae32c
commit
0983dbeafd
@ -375,7 +375,7 @@ def launch(path_or_url):
|
||||
elif isosx:
|
||||
subprocess.Popen(('open', path_or_url))
|
||||
elif iswindows:
|
||||
import win32api
|
||||
win32api = __import__('win32api', globals(), locals(), [], -1)
|
||||
win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 1)
|
||||
|
||||
def relpath(target, base=os.curdir):
|
||||
|
Loading…
x
Reference in New Issue
Block a user