mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 05:46:21 +02:00
Use correct python executable name on macOS
This commit is contained in:
parent
02d590180b
commit
915f9ad107
1 changed files with 2 additions and 0 deletions
|
|
@ -77,6 +77,8 @@ def download_and_decompress(url, dest, compression=None):
|
|||
|
||||
def run_python(*args):
|
||||
python = os.path.expandvars('$SW/bin/python')
|
||||
if ismacos:
|
||||
python += 2
|
||||
if len(args) == 1:
|
||||
args = shlex.split(args[0])
|
||||
args = [python] + list(args)
|
||||
|
|
|
|||
Loading…
Reference in a new issue