summaryrefslogtreecommitdiffstats
path: root/Lib/venv
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2019-03-27 15:14:53 (GMT)
committerGitHub <noreply@github.com>2019-03-27 15:14:53 (GMT)
commit4a9a505d6f2474a570422dad89f8d1b344d6cd36 (patch)
treebeb530c17126c4b3b2b7355f97cb10b3eee88c99 /Lib/venv
parentf4333d0479d6974d142e858522e95cbf8381f016 (diff)
downloadcpython-4a9a505d6f2474a570422dad89f8d1b344d6cd36.zip
cpython-4a9a505d6f2474a570422dad89f8d1b344d6cd36.tar.gz
cpython-4a9a505d6f2474a570422dad89f8d1b344d6cd36.tar.bz2
bpo-36441: Fixes creating a venv when debug binaries are installed. (#12566)
Diffstat (limited to 'Lib/venv')
-rw-r--r--Lib/venv/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index 5e6d375..4a49b24 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -195,6 +195,9 @@ class EnvBuilder:
src = os.path.join(os.path.dirname(src), basename + ext)
else:
src = srcfn
+ if not os.path.exists(src):
+ logger.warning('Unable to copy %r', src)
+ return
shutil.copyfile(src, dst)