# HG changeset patch
# User Edouard Tisserant
# Date 1339777727 -7200
# Node ID 299a4e34538026318b5e32216385f28f66ba9a8f
# Parent  7a09e12267a939dc0a968a4388836f90c1055c06
Moved LPC lib loading to the right place

diff -r 7a09e12267a9 -r 299a4e345380 LPCManager.py
--- a/LPCManager.py	Thu Jun 14 15:24:12 2012 +0200
+++ b/LPCManager.py	Fri Jun 15 18:28:47 2012 +0200
@@ -63,7 +63,14 @@
 
 _base_path = os.path.split(__file__)[0]
 import features
-features.libraries=[]
+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
@@ -81,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