diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index b5ef2d88e99..3a7e8e257a8 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -238,7 +238,8 @@ def setup_python(self, context): if 'init.tcl' in files: tcldir = os.path.basename(root) tcldir = os.path.join(context.env_dir, 'Lib', tcldir) - os.makedirs(tcldir) + if not os.path.exists(tcldir): + os.makedirs(tcldir) src = os.path.join(root, 'init.tcl') dst = os.path.join(tcldir, 'init.tcl') shutil.copyfile(src, dst)