tests/run-tests.py
branchstable
changeset 1175 62cc0851c70f
parent 1174 193946338595
child 1182 e553e222bd7e
equal deleted inserted replaced
1174:193946338595 1175:62cc0851c70f
   364     else:
   364     else:
   365         exename = 'python'
   365         exename = 'python'
   366         if sys.platform == 'win32':
   366         if sys.platform == 'win32':
   367             exename = 'python.exe'
   367             exename = 'python.exe'
   368     if getattr(os, 'symlink', None):
   368     if getattr(os, 'symlink', None):
   369         vlog("# Making python executable in test path a symlink to '%s'" % 
   369         vlog("# Making python executable in test path a symlink to '%s'" %
   370              sys.executable)
   370              sys.executable)
   371         mypython = os.path.join(BINDIR, exename)
   371         mypython = os.path.join(BINDIR, exename)
   372         try:
   372         try:
   373             os.symlink(sys.executable, mypython)
   373             os.symlink(sys.executable, mypython)
   374         except OSError, err:
   374         except OSError, err: