From 1dcf3ad8851af154ff71f017ce225c3c4dfb849a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 5 Dec 2014 06:45:20 +0100 Subject: [PATCH] init_venv: Use sys.executable for venv_python --- scripts/init_venv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)