diff -r 6f4b08348a60 -r ca1c34ff6c10 etherlab/EthercatMaster.py --- 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))