Kaydet (Commit) 1a170a74 authored tarafından Vinay Sajip's avatar Vinay Sajip

Issue #21663: Fixed error caused by trying to create an existing directory.

üst 7be121f2
...@@ -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