Fixed location of directory containing IEC standard library in C format.
authorEdouard Tisserant
Mon, 10 Nov 2014 22:28:15 +0100
changeset 1425 fa09aae984e9
parent 1424 0f2ced10db48
child 1426 dfea848e146d
child 1472 144cf3af992c
Fixed location of directory containing IEC standard library in C format.
ProjectController.py
--- a/ProjectController.py	Tue Jul 08 18:00:52 2014 +0100
+++ b/ProjectController.py	Mon Nov 10 22:28:15 2014 +0100
@@ -118,6 +118,7 @@
 
         self.iec2c_path = os.path.join(base_folder, "matiec", "iec2c"+(".exe" if wx.Platform == '__WXMSW__' else ""))
         self.ieclib_path = os.path.join(base_folder, "matiec", "lib")
+        self.ieclib_c_path = os.path.join(base_folder, "matiec", "lib", "C")
 
         # Setup debug information
         self.IECdebug_datas = {}
@@ -204,7 +205,7 @@
         return self
 
     def GetIECLibPath(self):
-        return self.ieclib_path
+        return self.ieclib_c_path
 
     def GetIEC2cPath(self):
         return self.iec2c_path
@@ -440,7 +441,7 @@
         if len(self.Libraries)==0:
             return [],[],()
         self.GetIECProgramsAndVariables()
-        LibIECCflags = '"-I%s/C" -Wno-unused-function'%os.path.abspath(self.GetIECLibPath())
+        LibIECCflags = '"-I%s" -Wno-unused-function'%os.path.abspath(self.GetIECLibPath())
         LocatedCCodeAndFlags=[]
         Extras=[]
         for lib in self.Libraries:
@@ -675,7 +676,7 @@
         # Keep track of generated C files for later use by self.CTNGenerate_C
         self.PLCGeneratedCFiles = C_files
         # compute CFLAGS for plc
-        self.plcCFLAGS = '"-I%s/C" -Wno-unused-function'%self.ieclib_path
+        self.plcCFLAGS = '"-I%s" -Wno-unused-function'%self.ieclib_c_path
         return True
 
     def GetBuilder(self):