Skip to content

Commit

Permalink
Only copy tcltk related files if exists and not present. Fixes #929
Browse files Browse the repository at this point in the history
  • Loading branch information
rodcloutier committed Jul 4, 2016
1 parent 4b707b8 commit ff95518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,8 @@ def copy_tcltk(src, dest, symlink):
for name in ['tcl', 'tk']:
srcdir = src + '/tcl/' + name + libver
dstdir = dest + '/tcl/' + name + libver
copyfileordir(srcdir, dstdir, symlink)
if os.path.exists(srcdir) and not os.path.exists(dstdir):
copyfileordir(srcdir, dstdir, symlink)

def subst_path(prefix_path, prefix, home_dir):
prefix_path = os.path.normpath(prefix_path)
Expand Down

0 comments on commit ff95518

Please sign in to comment.