plugins/python/python.py
changeset 430 5981ad8547f5
parent 427 7ac746c07ff2
child 654 9f6c091c316c
equal deleted inserted replaced
429:1a5471e81a93 430:5981ad8547f5
   172                   "xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",
   172                   "xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance",
   173                   "xsi:schemaLocation" : "python_xsd.xsd"}
   173                   "xsi:schemaLocation" : "python_xsd.xsd"}
   174         text += self.PythonCode.generateXMLText("Python", 0, extras)
   174         text += self.PythonCode.generateXMLText("Python", 0, extras)
   175 
   175 
   176         xmlfile = open(filepath,"w")
   176         xmlfile = open(filepath,"w")
   177         xmlfile.write(text)
   177         xmlfile.write(text.encode("utf-8"))
   178         xmlfile.close()
   178         xmlfile.close()
   179         
   179         
   180         self.PythonBuffer.CurrentSaved()
   180         self.PythonBuffer.CurrentSaved()
   181         return True
   181         return True
   182         
   182