etherlab/EthercatMaster.py
changeset 2135 ca1c34ff6c10
parent 2133 ba0b2ca7db26
child 2141 6963460bfe0f
--- a/etherlab/EthercatMaster.py	Wed Apr 24 23:27:35 2013 +0200
+++ b/etherlab/EthercatMaster.py	Fri Apr 26 13:59:43 2013 +0200
@@ -702,7 +702,7 @@
         
         self.FileGenerator.GenerateCFile(Gen_Ethercatfile_path, location_str, self.BaseParams.getIEC_Channel())
         
-        LocationCFilesAndCFLAGS.append(
+        LocationCFilesAndCFLAGS.insert(0, 
             (current_location, 
              [(Gen_Ethercatfile_path, '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath()))], 
              True))