def process(self, xml, args): self.xml = xml import oxyresbuild oxyresbuild.process( "-x %s --src_data tests --dest_data tests --debug " % (xml, ) + args) return self.getResult()
def process_xml(self, embedded, args): if embedded: folder = self.path_root + "tools" if folder not in sys.path: sys.path.append(folder) import oxyresbuild oxyresbuild.process(args) else: os.system(self.path_process_xml + " " + args)
def process_xml(self, embedded, args): if embedded: folder = self.path_root + "tools" if folder not in sys.path: sys.path.append(folder) import oxyresbuild return oxyresbuild.process(args) else: os.system("python \"{}\" {}".format(self.path_process_xml, args))