forked from ticketfrei/ticketfrei
7e6043f4a2
It could be made even more compliant, but that would actually decrease readability imo.
15 lines
331 B
Python
15 lines
331 B
Python
__all__ = []
|
|
|
|
import pkgutil
|
|
import inspect
|
|
|
|
for loader, name, is_pkg in pkgutil.walk_packages(__path__):
|
|
module = loader.find_module(name).load_module(name)
|
|
|
|
for name, value in inspect.getmembers(module):
|
|
if name.startswith('__'):
|
|
continue
|
|
|
|
globals()[name] = value
|
|
__all__.append(name)
|