Commit ae0767bb authored by Vinay Sajip's avatar Vinay Sajip

Closes #21663: Merged fix from 3.4.

parents cbd619bd 1a170a74
...@@ -238,7 +238,8 @@ class EnvBuilder: ...@@ -238,7 +238,8 @@ class EnvBuilder:
if 'init.tcl' in files: if 'init.tcl' in files:
tcldir = os.path.basename(root) tcldir = os.path.basename(root)
tcldir = os.path.join(context.env_dir, 'Lib', tcldir) 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') src = os.path.join(root, 'init.tcl')
dst = os.path.join(tcldir, 'init.tcl') dst = os.path.join(tcldir, 'init.tcl')
shutil.copyfile(src, dst) shutil.copyfile(src, dst)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment