run-tests: Elaborate python3 command override capabilities.

This commit is contained in:
Paul Sokolovsky 2014-04-04 17:28:34 +03:00
parent e8208a7f02
commit a7752a4540
1 changed files with 4 additions and 1 deletions

View File

@ -5,8 +5,11 @@ import subprocess
import sys import sys
from glob import glob from glob import glob
# Tests require at least CPython 3.3. If your default python3 executable
# is of lower version, you can point MICROPY_CPYTHON3 environment var
# to the correct executable.
if os.name == 'nt': if os.name == 'nt':
CPYTHON3 = 'python3.exe' CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3.exe')
MP_PY = '../windows/micropython.exe' MP_PY = '../windows/micropython.exe'
else: else:
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3') CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3')