mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #540
This commit is contained in:
parent
e54893d9a8
commit
3c7f0c2ffa
@ -266,6 +266,7 @@ def detect_ncpus():
|
||||
#return the default value
|
||||
return 1
|
||||
|
||||
|
||||
def launch(path_or_url):
|
||||
if islinux:
|
||||
subprocess.Popen(('xdg-open', path_or_url))
|
||||
@ -273,4 +274,4 @@ def launch(path_or_url):
|
||||
subprocess.Popen(('open', path_or_url))
|
||||
elif iswindows:
|
||||
import win32api
|
||||
win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 0)
|
||||
win32api.ShellExecute(0, 'open', path_or_url, None, os.getcwd(), 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user