MergeProjects - temporary handle old way of passing files to merge

This commit is contained in:
Andrej730
2024-11-08 11:05:44 +05:00
parent fe8c396e12
commit 77e6ab3b8b
@@ -57,6 +57,14 @@ class Patcher:
self.filepaths = filepaths
def patch(self):
if isinstance(self.filepaths, Union[str, ifcopenshell.file]):
print(
(
"WARNING. Passing a single file/filepath will be deprecated soon for MergeProjects ifcpatch, "
"replace it with a list of file/filepaths."
)
)
self.filepaths = [self.filepaths]
for filepath in self.filepaths:
if isinstance(filepath, ifcopenshell.file):
other = filepath