venv: Fix output when copying files.

This commit is contained in:
Florian Bruhin 2015-01-23 19:14:32 +01:00
parent be568e1681
commit feb964cff9

View File

@ -159,14 +159,15 @@ def link_pyqt():
raise FileNotFoundError(source)
if os.path.exists(dest):
os.unlink(dest)
print('{} -> {}'.format(source, dest))
if os.name == 'nt':
if os.path.isdir(source):
shutil.copytree(source, dest, ignore=get_ignored_files,
copy_function=verbose_copy)
else:
print('{} -> {}'.format(source, dest))
shutil.copy(source, dest)
else:
print('{} -> {}'.format(source, dest))
os.symlink(source, dest)