Coverage for gwcelery/util/__init__.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-04-17 17:22 +0000

1"""Miscellaneous utilities that are useful inside many different tasks.""" 

2import os 

3import pkgutil 

4 

5__all__ = () 

6 

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 

13 

14# Clean up 

15del os, pkgutil