summaryrefslogtreecommitdiffstats
path: root/Lib/venv
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/venv')
-rw-r--r--Lib/venv/__init__.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index 8f9e313..d5ab389 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -106,10 +106,7 @@ class EnvBuilder:
context.prompt = '(%s) ' % prompt
create_if_needed(env_dir)
env = os.environ
- if sys.platform == 'darwin' and '__PYVENV_LAUNCHER__' in env:
- executable = os.environ['__PYVENV_LAUNCHER__']
- else:
- executable = sys.executable
+ executable = getattr(sys, '_base_executable', sys.executable)
dirname, exename = os.path.split(os.path.abspath(executable))
context.executable = executable
context.python_dir = dirname