__init__.py 465 B

12345678910111213141516
  1. """
  2. plugin/module_payment - 延迟导入,避免模块级全量 import 触发生产依赖链。
  3. """
  4. import importlib
  5. _MODULES = ["employee", "enterprise", "expense", "notification", "points", "department", "openapi", "facetoface"]
  6. def __getattr__(name):
  7. if name in _MODULES:
  8. return importlib.import_module(f".{name}", __package__)
  9. raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
  10. def __dir__():
  11. return list(_MODULES)