(self)
| 80 | return path.exists() and path.is_file() and "ifc" in path.suffix.lower() |
| 81 | |
| 82 | def get_filepath_abs(self) -> Path: |
| 83 | # self.filepath filled by fileselect_add is absolute |
| 84 | # but we support relative paths provided by custom scripts. |
| 85 | filepath = Path(self.filepath) |
| 86 | if not filepath.is_absolute(): |
| 87 | filepath = Path(bpy.path.abspath("//")) / filepath |
| 88 | return filepath |
| 89 | |
| 90 | def get_filepath(self) -> str: |
| 91 | """get filepath taking into account relative paths""" |
no outgoing calls
no test coverage detected