Coverage for gwcelery/util/__init__.py: 100%
7 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-11-14 05:52 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-11-14 05:52 +0000
1"""Miscellaneous utilities that are useful inside many different tasks."""
2import os
3import pkgutil
5__all__ = ()
7# Import all symbols from all submodules of this module.
8for _, module, _ in pkgutil.iter_modules([os.path.dirname(__file__)]):
9 exec('from . import {0};'
10 '__all__ += getattr({0}, "__all__", ());'
11 'from .{0} import *'.format(module))
12 del module
14# Clean up
15del os, pkgutil