equal
deleted
inserted
replaced
3535 # simple script on PATH with that name that delegates to the py3 |
3535 # simple script on PATH with that name that delegates to the py3 |
3536 # launcher so the shebang lines work. |
3536 # launcher so the shebang lines work. |
3537 if os.getenv('MSYSTEM'): |
3537 if os.getenv('MSYSTEM'): |
3538 with open(osenvironb[b'RUNTESTDIR'] + b'/python3', 'wb') as f: |
3538 with open(osenvironb[b'RUNTESTDIR'] + b'/python3', 'wb') as f: |
3539 f.write(b'#!/bin/sh\n') |
3539 f.write(b'#!/bin/sh\n') |
3540 f.write(b'py -3 "$@"\n') |
3540 f.write(b'py -3.%d "$@"\n' % sys.version_info[1]) |
3541 |
3541 |
3542 exedir, exename = os.path.split(sysexecutable) |
3542 exedir, exename = os.path.split(sysexecutable) |
3543 vlog( |
3543 vlog( |
3544 "# Modifying search path to find %s as %s in '%s'" |
3544 "# Modifying search path to find %s as %s in '%s'" |
3545 % (exename, pyexename, exedir) |
3545 % (exename, pyexename, exedir) |