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

2

3

4

5

6

7

8

9

#!/usr/bin/env python 

"""Add all of the modules in the current directory to __all__""" 

import os 

 

__all__ = [] 

 

for module in os.listdir(os.path.dirname(__file__)): 

  if module != '__init__.py' and module[-3:] == '.py': 

    __all__.append(module[:-3])