1import os
2# Add all python modules to __all__, skipping unittests
3__all__ = []
4for file_name in os.listdir(os.path.dirname(__file__)):
5    if (file_name.endswith('.py') and
6        file_name not in ['common.py', '__init__.py'] and
7        file_name.find('unittest') == -1):
8        module_name = file_name.rstrip('.py')
9        __all__.append(module_name)
10print 'State machines to load: %s' % str(__all__)
11