mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
only touch the pipfile when it doesn't exist
Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
+2
-1
@@ -381,7 +381,8 @@ def ensure_virtualenv(three=None, python=None):
|
||||
def ensure_project(three=None, python=None, validate=True, system=False, warn=True):
|
||||
"""Ensures both Pipfile and virtualenv exist for the project."""
|
||||
|
||||
project.touch_pipfile()
|
||||
if not project.pipfile_exists:
|
||||
project.touch_pipfile()
|
||||
|
||||
# Skip virtualenv creation when --system was used.
|
||||
if not system:
|
||||
|
||||
Reference in New Issue
Block a user