def createMasterInspectionXML(self, delChildXMLs = False): lt = ListTool() os = OSTool() sort = Sorter() insp = Inspector() xmls = os.getFilesInDir('results/') xmls = lt.popByWord(xmls, self.masterInspectionPath) XMLInspections = insp.getInspections(xmls) if len(XMLInspections) == 0: print('No files read.') exit() XMLInspections = sort.sortInspectionList(XMLInspections) xWriter = XMLWriter() xWriter.writeMIXML(XMLInspections, self.masterInspectionPath) if delChildXMLs: for xml in xmls: os.deleteFile(xml)
def startServerProg(self): os = OSTool() os.startProgram('google-chrome', 'localhost:80/tracker/')
def deleteFile(self): for ind, obj in enumerate(self.XMLInspections): if obj.ID == self.voteId: os = OSTool() os.deleteFile(obj.fil) return