etherlab/EthercatMaster.py
changeset 2404 87eb184414bd
parent 2403 045df8ecc8b3
child 2405 af050469fc5c
equal deleted inserted replaced
2403:045df8ecc8b3 2404:87eb184414bd
   247                 error = e.message
   247                 error = e.message
   248             config_xmlfile.close()
   248             config_xmlfile.close()
   249 
   249 
   250             if error is not None:
   250             if error is not None:
   251                 self.GetCTRoot().logger.write_error(
   251                 self.GetCTRoot().logger.write_error(
   252                     _("Couldn't load %s network configuration file.") % CTNName)
   252                     _("Couldn't load %s network configuration file.") % self.CTNName())
   253 
   253 
   254         if self.Config is None:
   254         if self.Config is None:
   255             self.Config = EtherCATConfigParser.CreateElement("EtherCATConfig")
   255             self.Config = EtherCATConfigParser.CreateElement("EtherCATConfig")
   256 
   256 
   257         process_filepath = self.ProcessVariablesFileName()
   257         process_filepath = self.ProcessVariablesFileName()
   268                 error = e.message
   268                 error = e.message
   269             process_xmlfile.close()
   269             process_xmlfile.close()
   270 
   270 
   271             if error is not None:
   271             if error is not None:
   272                 self.GetCTRoot().logger.write_error(
   272                 self.GetCTRoot().logger.write_error(
   273                     _("Couldn't load %s network process variables file.") % CTNName)
   273                     _("Couldn't load %s network process variables file.") % self.CTNName())
   274 
   274 
   275         if self.ProcessVariables is None:
   275         if self.ProcessVariables is None:
   276             self.ProcessVariables = ProcessVariablesParser.CreateElement("ProcessVariables")
   276             self.ProcessVariables = ProcessVariablesParser.CreateElement("ProcessVariables")
   277 
   277 
   278         if config_is_saved and process_is_saved:
   278         if config_is_saved and process_is_saved: