diff --git a/DDCore/python/dd4hep_base.py b/DDCore/python/dd4hep_base.py index e42723c2b..3d5073c8d 100644 --- a/DDCore/python/dd4hep_base.py +++ b/DDCore/python/dd4hep_base.py @@ -11,6 +11,7 @@ from __future__ import absolute_import, unicode_literals import cppyy import importlib +import types import logging @@ -155,7 +156,7 @@ def unicode_2_string(value): tools = dd4hep.tools align = dd4hep.align detail = dd4hep.detail -units = imp.new_module('units') +units = types.ModuleType('units') # --------------------------------------------------------------------------- import_namespace_item('tools', 'Evaluator') # ---------------------------------------------------------------------------