tests/run-tests.py
branchstable
changeset 1172 9948a0145724
parent 1171 5af439678b99
child 1173 d5da1c5cf1f5
equal deleted inserted replaced
1171:5af439678b99 1172:9948a0145724
   361         path = findprogram(exename)
   361         path = findprogram(exename)
   362         if os.path.dirname(path) == exedir:
   362         if os.path.dirname(path) == exedir:
   363             return
   363             return
   364     else:
   364     else:
   365         exename = 'python'
   365         exename = 'python'
       
   366         if sys.platform == 'win32':
       
   367             exename = 'python.exe'
   366     vlog('# Making python executable in test path use correct Python')
   368     vlog('# Making python executable in test path use correct Python')
   367     mypython = os.path.join(BINDIR, exename)
   369     mypython = os.path.join(BINDIR, exename)
   368     try:
   370     try:
   369         os.symlink(sys.executable, mypython)
   371         os.symlink(sys.executable, mypython)
   370     except AttributeError:
   372     except AttributeError: