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

Method execute

src/bonsai/bonsai/bim/operator.py:400–408  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

398 return False
399
400 def execute(self, context):
401 binary_path = bpy.app.binary_path
402 if platform.system() == "Linux":
403 destdir = os.path.join(os.environ["HOME"], ".local")
404 self.install_desktop_linux(src_dir=LIBS_DESKTOP, destdir=destdir, binary_path=binary_path)
405 elif platform.system() == "Windows":
406 self.install_desktop_windows(binary_path)
407 self.report({"INFO"}, "Associations established.")
408 return {"FINISHED"}
409
410 def install_desktop_windows(self, binary_path: str) -> None:
411 import winreg

Callers

nothing calls this directly

Calls 4

install_desktop_linuxMethod · 0.95
joinMethod · 0.45
reportMethod · 0.45

Tested by

no test coverage detected