equal
deleted
inserted
replaced
1 from os import listdir, path |
1 from os import listdir, path |
2 |
2 |
3 l = listdir(path.split(__file__)[0]) |
3 base_path = path.split(__file__)[0] |
4 |
4 |
5 __all__ = [name[0:-3] for name in l if name.endswith(".py") and not name.startswith("__")] |
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("__")] |
6 |
6 |
|
7 for name in __all__: |
|
8 __import__(name, globals(), locals(), []) |