diff --git a/scripts/init_venv.py b/scripts/init_venv.py index 8071b4362..f1e263b57 100644 --- a/scripts/init_venv.py +++ b/scripts/init_venv.py @@ -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)