diff options
Diffstat (limited to 'Lib/venv')
-rw-r--r-- | Lib/venv/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 8009deb..b007e25 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -267,8 +267,9 @@ class EnvBuilder: os.path.normcase(f).startswith(('python', 'vcruntime')) ] else: - suffixes = ['python.exe', 'python_d.exe', 'pythonw.exe', - 'pythonw_d.exe'] + suffixes = {'python.exe', 'python_d.exe', 'pythonw.exe', 'pythonw_d.exe'} + base_exe = os.path.basename(context.env_exe) + suffixes.add(base_exe) for suffix in suffixes: src = os.path.join(dirname, suffix) |