Skip to content

Commit

Permalink
replace one more use of imp
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Dec 5, 2023
1 parent 684174b commit a17e8fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DDCore/python/dd4hep_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from __future__ import absolute_import, unicode_literals
import cppyy
import importlib
import types
import logging


Expand Down Expand Up @@ -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')
# ---------------------------------------------------------------------------
Expand Down

0 comments on commit a17e8fa

Please sign in to comment.