plugins/__init__.py
changeset 17 ee8cb104dbe0
parent 14 eb9fdd316a40
child 83 ad4dafe7bfee
equal deleted inserted replaced
16:b2c02ca6271e 17:ee8cb104dbe0
     1 from os import listdir, path
     1 from os import listdir, path
     2 from __templates import PlugTemplate
       
     3 
     2 
     4 _base_path = path.split(__file__)[0]
     3 _base_path = path.split(__file__)[0]
     5 
     4 
     6 __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 != "CVS" or name.endswith(".py") and not name.startswith("__")]