Use python -m to call virtualenv in init_venv.

It seems python3-virtualenv on Debian Jessie doesn't contain
/usr/bin/virtualenv.
This commit is contained in:
Florian Bruhin 2014-12-16 17:24:00 +01:00
parent cafb487ac9
commit 40781b163e

View File

@ -149,7 +149,7 @@ def create_venv():
sys_site = ['--system-site-packages']
else:
sys_site = []
subprocess.check_call(['virtualenv'] + sys_site +
subprocess.check_call([sys.executable, '-m', 'virtualenv'] + sys_site +
['-p', sys.executable, g_path])