laurent@366: from os import listdir, path
laurent@366: 
laurent@366: _base_path = path.split(__file__)[0]
laurent@366: 
laurent@366: __all__ = [name for name in listdir(_base_path) if path.isdir(path.join(_base_path, name)) and name.upper() != "CVS" or name.endswith(".py") and not name.startswith("__")]
laurent@366: 
laurent@366: helps = []
laurent@366: for name in __all__:
laurent@366:     helpfilename = path.join(_base_path, name, "README")
laurent@366:     if path.isfile(helpfilename):
laurent@366:         helps.append(open(helpfilename).readline().strip())
laurent@366:     else:
laurent@366:         helps.append(name)