Mercurial > hg
comparison tests/run-tests.py @ 18058:fe5a41144982
run-tests: fix exename on Windows
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 11 Dec 2012 15:38:42 -0800 |
parents | 6b88ded2a993 |
children | c135ab6413b4 |
comparison
equal
deleted
inserted
replaced
18057:6b88ded2a993 | 18058:fe5a41144982 |
---|---|
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: |