mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 09:53:32 +01:00
misc: Add debug logging to load_class()
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
ddb1fd0eb4
commit
ce347772dd
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ def load_classes(path, baseclass, flt=None): # export
|
||||||
r = []
|
r = []
|
||||||
for p in path.split(':'):
|
for p in path.split(':'):
|
||||||
mod = importlib.import_module(path)
|
mod = importlib.import_module(path)
|
||||||
|
log.slog(log.DEBUG, "importing ", path)
|
||||||
r.extend(get_derived_classes(mod, baseclass, flt))
|
r.extend(get_derived_classes(mod, baseclass, flt))
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue