--- a/LPCExtension.py Mon Feb 05 13:08:35 2018 +0100
+++ b/LPCExtension.py Mon Feb 05 13:59:50 2018 +0100
@@ -1,5 +1,12 @@
+# --------- Libraries Extension ------------ -from POULibrary import POULibrary
+from POULibrary import SimplePOULibraryFactory # _lpcmanager_path, arch, etc are defined here because
# globals() of LPCManager.py are passed to extentions
@@ -11,12 +18,12 @@
if arch in PLC_MC9_module:
features.libraries += [('Python', 'py_ext.PythonLibrary'),
- ('RTC', SimplePOULibraryFactory("RTC")]
+ ('RTC', SimplePOULibraryFactory(_poulibpath("RTC"))] elif arch in PLC_GOT_module:
features.libraries += [('Python', 'py_ext.PythonLibrary'),
- ('RTC', SimplePOULibraryFactory("RTC")),
- ('GOT', SimplePOULibraryFactory("GOT"))]
+ ('RTC', SimplePOULibraryFactory(_poulibpath("RTC"))), + ('GOT', SimplePOULibraryFactory(_poulibpath("GOT")))] - features.libraries += [('LPC', SimplePOULibraryFactory("LPC"))]
+ features.libraries += [('LPC', SimplePOULibraryFactory(_poulibpath("LPC")))]