Dynamic loading of keyword actions.
I want to move to dynamic discovery of keyword actions. However, I see
[8:43]~/Arxiu/Fisica/LHCb/Projectes/AnalysisTools[actions]$ python3
Python 3.6.5 (default, Apr 25 2018, 14:23:58)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from analysis.physics import configure_model
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/albert/Arxiu/Fisica/LHCb/Projectes/AnalysisTools/analysis/physics/__init__.py", line 17, in <module>
from analysis.utils.logging_color import get_logger
File "/usr/local/Cellar/root/6.12.06_3/lib/root/ROOT.py", line 318, in _importhook
return _orig_ihook( name, *args, **kwds )
File "/Users/albert/Arxiu/Fisica/LHCb/Projectes/AnalysisTools/analysis/utils/__init__.py", line 15, in <module>
import analysis.utils.actions as _actions
AttributeError: module 'analysis' has no attribute 'utils'
@jeschle Do you understand why? Things like
from analysis.utils.actions import ACTION_KEYWORDS
work.
Edited by Albert Puig Navarro