--- a/plugger.py Fri Oct 16 10:37:53 2009 +0200
+++ b/plugger.py Fri Oct 16 10:50:16 2009 +0200
@@ -658,9 +658,6 @@
-iec2c_path = os.path.join(base_folder, "matiec", "iec2c"+exe_ext)
-ieclib_path = os.path.join(base_folder, "matiec", "lib")
# import for project creation timestamping
from threading import Timer, Lock, Thread, Semaphore
from time import localtime
@@ -747,6 +744,9 @@
+ self.iec2c_path = os.path.join(base_folder, "matiec", "iec2c"+exe_ext) + self.ieclib_path = os.path.join(base_folder, "matiec", "lib") # Setup debug information
self.IECdebug_lock = Lock()
@@ -807,6 +807,12 @@
+ def GetIECLibPath(self): + return self.ieclib_path + def GetIEC2cPath(self): def GetCurrentLocation(self):
@@ -1056,8 +1062,8 @@
status, result, err_result = ProcessLogger(
"\"%s\" -f -I \"%s\" -T \"%s\" \"%s\""%(
no_stdout=True, no_stderr=True).spin()
@@ -1107,7 +1113,7 @@
# Keep track of generated C files for later use by self.PlugGenerate_C
self.PLCGeneratedCFiles = C_files
- self.plcCFLAGS = "\"-I"+ieclib_path+"\""
+ self.plcCFLAGS = "\"-I"+self.ieclib_path+"\"" @@ -1274,9 +1280,9 @@
plc_main_code = targets.code("plc_common_main") % {
"calls_prototypes":"\n".join([(
"int __init_%(s)s(int argc,char **argv);\n"+
- "void __cleanup_%(s)s();\n"+
- "void __retrieve_%(s)s();\n"+
- "void __publish_%(s)s();")%{'s':locstr} for locstr in locstrs]),
+ "void __cleanup_%(s)s(void);\n"+ + "void __retrieve_%(s)s(void);\n"+ + "void __publish_%(s)s(void);")%{'s':locstr} for locstr in locstrs]), "retrieve_calls":"\n ".join([
"__retrieve_%s();"%locstr for locstr in locstrs]),
"publish_calls":"\n ".join([ #Call publish in reverse order
--- a/plugins/c_ext/c_ext.py Fri Oct 16 10:37:53 2009 +0200
+++ b/plugins/c_ext/c_ext.py Fri Oct 16 10:50:16 2009 +0200
@@ -341,7 +341,7 @@
- matiec_flags = " -I%s"%os.path.abspath(self.GetPlugRoot().GetIECLibPath())
+ matiec_flags = '"-I%s"'%os.path.abspath(self.GetPlugRoot().GetIECLibPath()) return [(Gen_Cfile_path, str(self.CExtension.getCFLAGS() + matiec_flags))],str(self.CExtension.getLDFLAGS()),True
--- a/plugins/python/python.py Fri Oct 16 10:37:53 2009 +0200
+++ b/plugins/python/python.py Fri Oct 16 10:50:16 2009 +0200
@@ -264,9 +264,6 @@
runtimefile.write(self.GetPythonCode())
- if wx.Platform == '__WXMSW__':
- matiec_flags = " -I../../matiec/lib"
- matiec_flags = " -I../matiec/lib"
+ matiec_flags = '"-I%s"'%os.path.abspath(self.GetPlugRoot().GetIECLibPath()) return [(Gen_Pythonfile_path, matiec_flags)], "", True, ("runtime_%s.py"%location_str, file(runtimefile_path,"rb"))