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 authored and MarkusFrankATcernch committed Dec 14, 2023
1 parent 92f911d commit 530670e
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 530670e

Please sign in to comment.