Make sure we are not in a virtualenv if aborting

This commit is contained in:
Matt
2018-05-11 11:26:50 -07:00
committed by GitHub
parent e86e7cfe38
commit f741059e2e
+1 -1
View File
@@ -1346,7 +1346,7 @@ 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:
if system or allow_global and not PIPENV_VIRTUALENV:
if (system or allow_global) and not PIPENV_VIRTUALENV:
click.echo(
'{0}: --system is intended to be used for Pipfile installation, '
'not installation of specific packages. Aborting.'.format(