Use correct python executable name on macOS

This commit is contained in:
Kovid Goyal 2019-09-05 13:43:11 +05:30
parent 02d590180b
commit 915f9ad107
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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)