diff -r 56643934495c -r 6963460bfe0f etherlab/EthercatMaster.py --- a/etherlab/EthercatMaster.py Mon Apr 29 11:07:32 2013 +0200 +++ b/etherlab/EthercatMaster.py Tue Apr 30 01:31:47 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))