etherlab/extension.py
author Laurent Bessard
Fri, 26 Apr 2013 13:57:10 +0200
changeset 2137 b65abacdbdf9
parent 2111 f2cffda17d00
permissions -rw-r--r--
Added support for multiple module extra params in ModulesLibrary
2048
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
     1
import features
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
     2
2086
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     3
def GetEtherLabLibClass():
2111
f2cffda17d00 Split etherlab.py into multiple files
Laurent Bessard
parents: 2086
diff changeset
     4
    from EthercatMaster import EtherlabLibrary
2086
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     5
    return EtherlabLibrary
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     6
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     7
features.libraries.append(
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     8
    ('Etherlab', GetEtherLabLibClass))
8e4992e0f147 Adding block library for SDO download and SDO upload
Laurent Bessard
parents: 2048
diff changeset
     9
2048
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    10
def GetEtherLabClass():
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    11
    from etherlab import RootClass
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    12
    return RootClass
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    13
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    14
features.catalog.append(
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    15
    ('etherlab', _('EtherCat Master'), _('Map located variables over EtherCat'), GetEtherLabClass))
5726f2bbdace reflected changes in beremiz extension mechanism
Edouard Tisserant
parents:
diff changeset
    16