Fix copying on Windows systems.
This commit is contained in:
parent
833554f31d
commit
5f1ade68be
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue