init_venv: Use sys.executable for venv_python

This commit is contained in:
Florian Bruhin 2014-12-05 06:45:20 +01:00
parent c89f0c339f
commit 1dcf3ad885

View File

@ -74,7 +74,7 @@ def install_dev_packages():
def venv_python(*args, output=False):
"""Call the virtualenv's python with the given arguments."""
executable = os.path.join(g_path, 'bin', 'python3')
executable = os.path.join(g_path, 'bin', os.path.basename(sys.executable))
if output:
return subprocess.check_output([executable] + list(args),
universal_newlines=True)