mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +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
|
@classmethod
|
||||||
def move_file(cls, src, dest):
|
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
|
@classmethod
|
||||||
def generate_drawing_name(cls, target_view, location_hint):
|
def generate_drawing_name(cls, target_view, location_hint):
|
||||||
|
|||||||
Reference in New Issue
Block a user