mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
+1
-1
@@ -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
@@ -25,7 +25,7 @@ requests = requests.session()
|
||||
|
||||
|
||||
def python_version(path_to_python):
|
||||
|
||||
print(path_to_python)
|
||||
if not path_to_python:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user