From 981a3ef96bf7ebccb3da24174db9288f586ffa82 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 23 Jan 2015 14:37:56 +0100 Subject: [PATCH] Always use 'python' binary in virtualenv. This should fix venv on OS X. See #463. --- 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 f0b419c43..bfb15b340 100644 --- a/scripts/init_venv.py +++ b/scripts/init_venv.py @@ -90,7 +90,7 @@ def install_dev_packages(): def venv_python(*args, output=False): """Call the venv's python with the given arguments.""" subdir = 'Scripts' if os.name == 'nt' else 'bin' - executable = os.path.join(g_path, subdir, os.path.basename(sys.executable)) + executable = os.path.join(g_path, subdir, 'python') env = dict(os.environ) if sys.platform == 'darwin' and '__PYVENV_LAUNCHER__' in env: # WORKAROUND for https://github.com/pypa/pip/issues/2031