Call virtualenv by module instead of command

Fix #2196.
This commit is contained in:
Tzu-ping Chung
2018-05-16 02:07:16 +08:00
parent 4b07aaa94c
commit 55d77b2581
+1 -1
View File
@@ -887,7 +887,7 @@ def do_create_virtualenv(python=None, site_packages=False):
# The user wants the virtualenv in the project.
if project.is_venv_in_project():
cmd = [
'virtualenv',
sys.executable, '-m', 'virtualenv',
project.virtualenv_location,
'--prompt=({0})'.format(project.name),
]