mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
Set _HAS_DRAW correctly
This commit is contained in:
@@ -25,7 +25,12 @@ from typing import Any
|
|||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.geom
|
import ifcopenshell.geom
|
||||||
import ifcopenshell.util.selector
|
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
|
from xml.etree.ElementTree import ElementTree, Element, SubElement, register_namespace
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user