lpcmanager

Finished moving library customization to LPCExtension
revamp
2018-02-05, Edouard Tisserant
ce13540e7e69
Parents 949d52a4a155
Children 1d0ab360af8a
Finished moving library customization to LPCExtension
--- 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 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+#
+# --------- Libraries Extension ------------
+#
+
import features
-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")))]
else:
- features.libraries += [('LPC', SimplePOULibraryFactory("LPC"))]
+ features.libraries += [('LPC', SimplePOULibraryFactory(_poulibpath("LPC")))]