diff --git a/src/ifcpatch/ifcpatch/recipes/MergeProjects.py b/src/ifcpatch/ifcpatch/recipes/MergeProjects.py index 3dd993f144..372cb039a3 100644 --- a/src/ifcpatch/ifcpatch/recipes/MergeProjects.py +++ b/src/ifcpatch/ifcpatch/recipes/MergeProjects.py @@ -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