mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
MergeProjects - temporary handle old way of passing files to merge
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user