diff -r 2aff8e8cd456 -r 75ae893d5eed plugins/__init__.py --- a/plugins/__init__.py Thu Aug 16 12:03:00 2007 +0200 +++ b/plugins/__init__.py Mon Aug 20 14:28:08 2007 +0200 @@ -1,6 +1,8 @@ from os import listdir, path -l = listdir(path.split(__file__)[0]) +base_path = path.split(__file__)[0] -__all__ = [name[0:-3] for name in l if name.endswith(".py") and not name.startswith("__")] +__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("__")] +for name in __all__: + __import__(name, globals(), locals(), [])