diff --git a/appveyor.yml b/appveyor.yml index 0da42233ca8c..ea610a2f5804 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,6 +12,7 @@ install: - "git config core.symlinks true" - "git reset --hard" - "%PYTHON%\\python.exe -m pip install -r test-requirements.txt" + - "C:\\Python27\\python.exe -m pip install typing" - "git submodule update --init typeshed" - "cd typeshed && git config core.symlinks true && git reset --hard && cd .." - "%PYTHON%\\python.exe -m pip install ." diff --git a/mypy/util.py b/mypy/util.py index 1e8e31898d23..1da8a52d4a2f 100644 --- a/mypy/util.py +++ b/mypy/util.py @@ -10,7 +10,7 @@ ENCODING_RE = re.compile(br'([ \t\v]*#.*(\r\n?|\n))??[ \t\v]*#.*coding[:=][ \t]*([-\w.]+)') -default_python2_interpreter = ['python2', 'python', '/usr/bin/python'] +default_python2_interpreter = ['python2', 'python', '/usr/bin/python', 'C:\\Python27\\python.exe'] def split_module_names(mod_name: str) -> List[str]: