Fix copying on Windows systems.

This commit is contained in:
Bastian Kleineidam 2015-12-07 19:49:54 +01:00
parent 833554f31d
commit 5f1ade68be
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ def link_or_copy(src, dst, verbosity=0):
log_info("Copying %s -> %s" % (src, dst))
try:
os.link(src, dst)
except OSError:
except (AttributeError, OSError):
try:
shutil.copy(src, dst)
except OSError as msg: