Add a comment describing the conditional

This commit is contained in:
Matt
2018-05-12 12:00:44 -07:00
committed by GitHub
parent f741059e2e
commit 9738b42241
+2
View File
@@ -1346,6 +1346,8 @@ def do_init(
do_lock(system=system, pre=pre, keep_outdated=keep_outdated)
# Write out the lockfile if it doesn't exist.
if not project.lockfile_exists and not skip_lock:
# Unless we're in a virtualenv not managed by pipenv, abort if we're
# using the system's python.
if (system or allow_global) and not PIPENV_VIRTUALENV:
click.echo(
'{0}: --system is intended to be used for Pipfile installation, '