author | lbessard |
Mon, 20 Aug 2007 14:28:08 +0200 | |
changeset 11 | 75ae893d5eed |
parent 10 | 2aff8e8cd456 |
child 12 | a1f9e514f708 |
permissions | -rw-r--r-- |
10 | 1 |
from os import listdir, path |
2 |
||
11 | 3 |
base_path = path.split(__file__)[0] |
10 | 4 |
|
11 | 5 |
__all__ = [name for name in listdir(base_path) if path.isdir(path.join(base_path, name)) and name != "CVS" or name.endswith(".py") and not name.startswith("__")] |
10 | 6 |
|
11 | 7 |
for name in __all__: |
8 |
__import__(name, globals(), locals(), []) |