PLCControler.py
changeset 452 34fc9b813205
parent 447 6083dcecd2c5
child 483 779a519f78f2
equal deleted inserted replaced
451:20464365086e 452:34fc9b813205
  2594             
  2594             
  2595             if filepath:
  2595             if filepath:
  2596                 xmlfile = open(filepath,"w")
  2596                 xmlfile = open(filepath,"w")
  2597             else:
  2597             else:
  2598                 xmlfile = open(self.FilePath,"w")
  2598                 xmlfile = open(self.FilePath,"w")
  2599             xmlfile.write(text)
  2599             xmlfile.write(text.encode("utf-8"))
  2600             xmlfile.close()
  2600             xmlfile.close()
  2601             self.MarkProjectAsSaved()
  2601             self.MarkProjectAsSaved()
  2602             if filepath:
  2602             if filepath:
  2603                 self.SetFilePath(filepath)
  2603                 self.SetFilePath(filepath)
  2604             return True
  2604             return True