mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
Potential fix for #3273 where renamed drawings might not get moved on Windows.
This commit is contained in:
@@ -884,7 +884,11 @@ class Drawing(blenderbim.core.tool.Drawing):
|
||||
|
||||
@classmethod
|
||||
def move_file(cls, src, dest):
|
||||
shutil.move(src, dest)
|
||||
try:
|
||||
shutil.move(src, dest)
|
||||
except:
|
||||
# Perhaps the file is locked in Windows?
|
||||
shutil.copy(src, dest)
|
||||
|
||||
@classmethod
|
||||
def generate_drawing_name(cls, target_view, location_hint):
|
||||
|
||||
Reference in New Issue
Block a user