mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use correct python executable name on macOS
This commit is contained in:
parent
02d590180b
commit
915f9ad107
@ -77,6 +77,8 @@ def download_and_decompress(url, dest, compression=None):
|
|||||||
|
|
||||||
def run_python(*args):
|
def run_python(*args):
|
||||||
python = os.path.expandvars('$SW/bin/python')
|
python = os.path.expandvars('$SW/bin/python')
|
||||||
|
if ismacos:
|
||||||
|
python += 2
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
args = shlex.split(args[0])
|
args = shlex.split(args[0])
|
||||||
args = [python] + list(args)
|
args = [python] + list(args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user