mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
WIP fix BIMTester packaging. See #1222.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import bpy
|
||||
import ifcopenshell
|
||||
import bimtester
|
||||
import bimtester.run
|
||||
import bimtester.reports
|
||||
import os
|
||||
import webbrowser
|
||||
from pathlib import Path
|
||||
@@ -20,7 +22,16 @@ class ExecuteBIMTester(bpy.types.Operator):
|
||||
)
|
||||
cwd = os.getcwd()
|
||||
os.chdir(bpy.context.scene.BimTesterProperties.features_dir)
|
||||
bimtester.run.run_tests({"feature": filename, "advanced_arguments": None, "console": False})
|
||||
bimtester.run.run_tests({
|
||||
"advanced_arguments": "",
|
||||
"console": False,
|
||||
"featuresdir": "",
|
||||
"feature": filename,
|
||||
"gui": False,
|
||||
"ifcfile": "",
|
||||
"purge": False,
|
||||
"path": "",
|
||||
})
|
||||
bimtester.reports.generate_report()
|
||||
webbrowser.open(
|
||||
"file://"
|
||||
|
||||
@@ -3,7 +3,7 @@ from bpy.types import Panel
|
||||
|
||||
|
||||
class BIM_PT_qa(Panel):
|
||||
bl_label = "BIMTester Quality Auditing"
|
||||
bl_label = "BIMTester"
|
||||
bl_idname = "BIM_PT_qa"
|
||||
bl_options = {"DEFAULT_CLOSED"}
|
||||
bl_space_type = "PROPERTIES"
|
||||
|
||||
Reference in New Issue
Block a user