plugins/__init__.py
changeset 83 ad4dafe7bfee
parent 17 ee8cb104dbe0
child 106 9810689febb0
equal deleted inserted replaced
82:d7b4dd1f543f 83:ad4dafe7bfee
     1 from os import listdir, path
     1 from os import listdir, path
     2 
     2 
     3 _base_path = path.split(__file__)[0]
     3 _base_path = path.split(__file__)[0]
     4 
     4 
     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("__")]
     5 __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("__")]