mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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 numbers
|
||||
import logging
|
||||
import itertools
|
||||
|
||||
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):
|
||||
def __init__(self, e):
|
||||
|
||||
Reference in New Issue
Block a user