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))
|
log_info("Copying %s -> %s" % (src, dst))
|
||||||
try:
|
try:
|
||||||
os.link(src, dst)
|
os.link(src, dst)
|
||||||
except OSError:
|
except (AttributeError, OSError):
|
||||||
try:
|
try:
|
||||||
shutil.copy(src, dst)
|
shutil.copy(src, dst)
|
||||||
except OSError as msg:
|
except OSError as msg:
|
||||||
|
|
Loading…
Reference in New Issue