8 return func(*args, **kwargs)
14 except TypeError
as e:
19 except TypeError
as e:
24 except TypeError
as e:
38 if len(target_names) == 0:
41 now_target = target_names[0]
43 if hasattr(module, now_target):
44 next_module = getattr(module, now_target)
45 return Compulsory.search_target(next_module, target_names)
47 ALog.log_error(f
'The package name does not exist in the search tree: {now_target}, please check ' +
48 'whether the package name is filled in correctly', ImportError, raise_exception=
True)