merge
authorEdouard Tisserant
Sat, 16 Jun 2012 14:15:52 +0200
changeset 10 6450214a7c80
parent 8 73dcd03f53bb (diff)
parent 9 516f661a4fc5 (current diff)
child 13 2e3c3da3593e
merge
LPCManager.py
--- a/LPCManager.py	Sat Jun 16 09:25:21 2012 +0200
+++ b/LPCManager.py	Sat Jun 16 14:15:52 2012 +0200
@@ -62,6 +62,15 @@
 sys.path.append(os.path.join(_base_folder, "beremiz"))
 
 _base_path = os.path.split(__file__)[0]
+import features
+from POULibrary import POULibrary
+
+class PLCLibrary(POULibrary):
+    def GetLibraryPath(self):
+        return os.path.join(_base_path, "pous.xml")
+
+features.libraries=[('LPC', lambda: PLCLibrary)]
+
 
 import connectors
 from LPCconnector import LPC_connector_factory
@@ -79,17 +88,6 @@
 misc.opjimg = lambda imgname: os.path.join(_base_folder, "beremiz", "images", imgname+".png")
 
 from Beremiz import *
-
-import features
-from POULibrary import POULibrary
-
-class PLCLibrary(POULibrary):
-    def GetLibraryPath(self):
-        return os.path.join(_base_path, "pous.xml")
-
-features.libraries.append(
-    ('LPC', lambda: PLCLibrary))
-
 from ProjectController import ProjectController
 from ConfigTreeNode import ConfigTreeNode
 from ProjectNodeEditor import ProjectNodeEditor