Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

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