changes for windows

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-14 13:50:40 -04:00
parent e3440845b4
commit acd1bbe8fa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -390,7 +390,7 @@ def ensure_project(three=None, python=None, validate=True, system=False, warn=Tr
if warn:
# Warn users if they are using the wrong version of Python.
if project.required_python_version:
path_to_python = which('python')
path_to_python = shellquote(which('python'))
if project.required_python_version not in python_version(path_to_python):
puts(
'{0}: Your Pipfile requires {1} {2}, '
+1 -1
View File
@@ -25,7 +25,7 @@ requests = requests.session()
def python_version(path_to_python):
print(path_to_python)
if not path_to_python:
return None