lpcmanager
Clone
Summary
Browse
Changes
Graph
Moved LPCLibrary.py -> LPCExtension.py
revamp
2018-02-05, Edouard Tisserant
949d52a4a155
Parents
9780486de8d8
Children
ce13540e7e69
Moved LPCLibrary.py -> LPCExtension.py
2 files changed, 22 insertions(+), 22 deletions(-)
+22
-0
LPCExtension.py
+0
-22
LPCLibrary.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LPCExtension.py Mon Feb 05 13:08:35 2018 +0100
@@ -0,0 +1,22 @@
+import features
+from POULibrary import POULibrary
+
+# _lpcmanager_path, arch, etc are defined here because
+# globals() of LPCManager.py are passed to extentions
+
+features.libraries=[('Native', 'NativeLib.NativeLibrary')]
+
+def _poulibpath(name):
+ return os.path.join(_lpcmanager_path, 'Pous', "pous"+name+".xml")
+
+if arch in PLC_MC9_module:
+ features.libraries += [('Python', 'py_ext.PythonLibrary'),
+ ('RTC', SimplePOULibraryFactory("RTC")]
+elif arch in PLC_GOT_module:
+ features.libraries += [('Python', 'py_ext.PythonLibrary'),
+ ('RTC', SimplePOULibraryFactory("RTC")),
+ ('GOT', SimplePOULibraryFactory("GOT"))]
+else:
+ features.libraries += [('LPC', SimplePOULibraryFactory("LPC"))]
+
+
--- a/LPCLibrary.py Mon Feb 05 13:03:09 2018 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-import features
-from POULibrary import POULibrary
-
-# _lpcmanager_path, arch, etc are defined here because
-# globals() of LPCManager.py are passed to extentions
-
-features.libraries=[('Native', 'NativeLib.NativeLibrary')]
-
-def _poulibpath(name):
- return os.path.join(_lpcmanager_path, 'Pous', "pous"+name+".xml")
-
-if arch in PLC_MC9_module:
- features.libraries += [('Python', 'py_ext.PythonLibrary'),
- ('RTC', SimplePOULibraryFactory("RTC")]
-elif arch in PLC_GOT_module:
- features.libraries += [('Python', 'py_ext.PythonLibrary'),
- ('RTC', SimplePOULibraryFactory("RTC")),
- ('GOT', SimplePOULibraryFactory("GOT"))]
-else:
- features.libraries += [('LPC', SimplePOULibraryFactory("LPC"))]
-
-