Closes #21663: Merged fix from 3.4.

This commit is contained in:
Vinay Sajip 2014-06-05 09:32:24 +01:00
commit ae0767bb5b

View file

@ -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)