init_venv: Use sys.executable for venv_python
This commit is contained in:
parent
c89f0c339f
commit
1dcf3ad885
@ -74,7 +74,7 @@ def install_dev_packages():
|
|||||||
|
|
||||||
def venv_python(*args, output=False):
|
def venv_python(*args, output=False):
|
||||||
"""Call the virtualenv's python with the given arguments."""
|
"""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:
|
if output:
|
||||||
return subprocess.check_output([executable] + list(args),
|
return subprocess.check_output([executable] + list(args),
|
||||||
universal_newlines=True)
|
universal_newlines=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user