confnodes/__init__.py
changeset 720 6be032177e2a
parent 717 1c23952dbde1
equal deleted inserted replaced
719:db54ccc96309 720:6be032177e2a
     1 from os import listdir, path
     1 from os import listdir, path
     2 
     2 
     3 _base_path = path.split(__file__)[0]
     3 catalog = [
       
     4     ('canfestival', _('CANopen support'), _('Map located variables over CANopen'), 'confnodes.canfestival.canfestival.RootClass'),
       
     5     ('c_ext', _('C extention'), _('Extend project with C code accessing located variables'), 'confnodes.c_ext.c_ext.RootClass'),
       
     6     ('python', _('Python extention'), _('Extend project with Pyhon code executed asynchronously'), 'confnodes.python.python.RootClass')]
       
     7 #    ('ethercat_master', _('Ethercat master'), _('Map located variables over EtherCat, as a master'), 'ethercat.EthercatPlug')]
     4 
     8 
     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("__")]
       
     6 
     9 
     7 helps = []
    10 
     8 for name in __all__:
       
     9     helpfilename = path.join(_base_path, name, "README")
       
    10     if path.isfile(helpfilename):
       
    11         helps.append(open(helpfilename).readline().strip())
       
    12     else:
       
    13         helps.append(name)