Move has_occ() function to __init__

This commit is contained in:
Mieszko Boczkowski
2019-12-09 11:52:30 +01:00
committed by Thomas Krijnen
parent f84982f99a
commit 1426c7066b
2 changed files with 22 additions and 19 deletions
@@ -28,24 +28,7 @@ from .. import ifcopenshell_wrapper
from ..file import file
from ..entity_instance import entity_instance
def has_occ():
try:
import OCC.Core.BRepTools
return True
except ImportError:
pass
try:
import OCC.BRepTools
return True
except ImportError:
pass
return False
has_occ = has_occ()
from . import has_occ
def wrap_shape_creation(settings, shape):