PLCControler.py
changeset 1223 d51cea72baa7
parent 1222 775b48a2be3b
child 1254 ebc765355536
equal deleted inserted replaced
1222:775b48a2be3b 1223:d51cea72baa7
  1575                                 return None
  1575                                 return None
  1576                             else:
  1576                             else:
  1577                                 result_blocktype["inputs"] = [(i[0], "ANY", i[2]) for i in result_blocktype["inputs"]]
  1577                                 result_blocktype["inputs"] = [(i[0], "ANY", i[2]) for i in result_blocktype["inputs"]]
  1578                                 result_blocktype["outputs"] = [(o[0], "ANY", o[2]) for o in result_blocktype["outputs"]]
  1578                                 result_blocktype["outputs"] = [(o[0], "ANY", o[2]) for o in result_blocktype["outputs"]]
  1579                                 return result_blocktype
  1579                                 return result_blocktype
  1580                         result_blocktype = blocktype
  1580                         result_blocktype = blocktype.copy()
  1581         if result_blocktype is not None:
  1581         if result_blocktype is not None:
  1582             return result_blocktype
  1582             return result_blocktype
  1583         project = self.GetProject(debug)
  1583         project = self.GetProject(debug)
  1584         if project is not None:
  1584         if project is not None:
  1585             return project.GetCustomBlockType(type, inputs)
  1585             return project.GetCustomBlockType(type, inputs)