mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 01:47:55 +00:00
python: make logging import conditional in case time is not built
This commit is contained in:
@@ -19,12 +19,16 @@
|
|||||||
|
|
||||||
import functools
|
import functools
|
||||||
import numbers
|
import numbers
|
||||||
import logging
|
|
||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
from . import ifcopenshell_wrapper
|
from . import ifcopenshell_wrapper
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
try:
|
||||||
|
import logging
|
||||||
|
log = logging.getLogger(__name__)
|
||||||
|
except ImportError as e:
|
||||||
|
log = type('logger', (object,), {'exception': lambda s: print(s)})
|
||||||
|
|
||||||
|
|
||||||
class entity_instance(object):
|
class entity_instance(object):
|
||||||
def __init__(self, e):
|
def __init__(self, e):
|
||||||
|
|||||||
Reference in New Issue
Block a user