Set _HAS_DRAW correctly

This commit is contained in:
Bruno Postle
2026-03-09 23:10:07 +00:00
parent 5b3960c9e5
commit 4d564f00aa
+6 -1
View File
@@ -25,7 +25,12 @@ from typing import Any
import ifcopenshell
import ifcopenshell.geom
import ifcopenshell.util.selector
import ifcopenshell.draw
try:
import ifcopenshell.draw
_HAS_DRAW = True
except ImportError:
_HAS_DRAW = False
from xml.etree.ElementTree import ElementTree, Element, SubElement, register_namespace