mirror of
https://github.com/python/cpython.git
synced 2026-04-01 01:21:04 +00:00
[3.10] bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) (GH-30034)
Co-authored-by: Ian Norton <inorton@gmail.com>
This commit is contained in:
parent
bb76410824
commit
bb8d645f3a
1 changed files with 3 additions and 2 deletions
|
|
@ -281,8 +281,9 @@ def setup_python(self, context):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue