MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_filepath_abs

Method get_filepath_abs

src/bonsai/bonsai/bim/ui.py:82–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"""

Callers 3

is_existing_ifc_fileMethod · 0.95
get_filepathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected