mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
set_plugin_search_paths() inside test as well
This commit is contained in:
@@ -14,6 +14,8 @@ def test_ifcopenshell_import(selenium):
|
|||||||
import micropip
|
import micropip
|
||||||
await micropip.install(f"./{WHEEL_FILENAME}")
|
await micropip.install(f"./{WHEEL_FILENAME}")
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
|
from pathlib import Path
|
||||||
|
ifcopenshell.set_plugin_search_paths([str(Path(ifcopenshell.__file__).parent)])
|
||||||
ifc_file = ifcopenshell.file()
|
ifc_file = ifcopenshell.file()
|
||||||
wall = ifc_file.create_entity("IfcWall")
|
wall = ifc_file.create_entity("IfcWall")
|
||||||
wall1 = ifc_file.by_type("IfcWall")[0]
|
wall1 = ifc_file.by_type("IfcWall")[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user