tests/run-tests.py
changeset 47179 6f976d54946c
parent 47040 c853bc60c5d6
child 47233 bcafcd779d2e
equal deleted inserted replaced
47178:63286e0886a6 47179:6f976d54946c
  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)