summaryrefslogtreecommitdiff
path: root/Lib/venv
diff options
context:
space:
mode:
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 5e6d375e95..4a49b240b8 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)