mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Allow URI browsing for IfcPatch recipes with directory names
This commit is contained in:
@@ -42,7 +42,7 @@ class Patch(bonsai.core.tool.Patch):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def is_filepath_argument(cls, arg_info: ifcpatch.InputDoc) -> bool:
|
def is_filepath_argument(cls, arg_info: ifcpatch.InputDoc) -> bool:
|
||||||
# There is probably a more explicit way to do this
|
# There is probably a more explicit way to do this
|
||||||
return "filepath" in arg_info["name"] or "filter_glob" in arg_info
|
return "filepath" in arg_info["name"] or arg_info["name"].endswith("_dir") or "filter_glob" in arg_info
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def does_patch_has_output(cls, recipe: str) -> bool:
|
def does_patch_has_output(cls, recipe: str) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user