Loading scripts/parse_commands.py +3 −2 Original line number Diff line number Diff line Loading @@ -185,7 +185,8 @@ if __name__ == '__main__': with open('scripts/rend_header.txt','r') as header: outfile.write(header.read()) for cmd in cmds_rend: absolute_out = re.search(r"\s(([\S]+)(.wav))$", cmd) absolute_out = re.search(r"-o ([^>]+\.wav)", cmd) args = [] for arg in cmd.split(): # Adjust file arguments, pass other arguments as they are Loading @@ -207,7 +208,7 @@ if __name__ == '__main__': for output in glob.glob(absolute_out.group(1) + '*'): output = path.relpath(output).replace('\\','/') output = re.sub('tests', CUT_PATH, output) diff_cmds.append('$DIFF_BIN '+out.group(1).replace(CUT_PATH + r'/renderer_short/ref',REF_PATH + r'/renderer_short/ref')+' '+out.group(1)+' >> $LOG_FILE 2>&1\n') diff_cmds.append('$DIFF_BIN '+output.replace(CUT_PATH + r'/renderer_short/ref',REF_PATH + r'/renderer_short/ref')+' '+ output +' >> $LOG_FILE 2>&1') outfile.write(('; ').join(diff_cmds)) outfile.write('\n') with open('scripts/script_footer.txt','r') as footer: Loading Loading
scripts/parse_commands.py +3 −2 Original line number Diff line number Diff line Loading @@ -185,7 +185,8 @@ if __name__ == '__main__': with open('scripts/rend_header.txt','r') as header: outfile.write(header.read()) for cmd in cmds_rend: absolute_out = re.search(r"\s(([\S]+)(.wav))$", cmd) absolute_out = re.search(r"-o ([^>]+\.wav)", cmd) args = [] for arg in cmd.split(): # Adjust file arguments, pass other arguments as they are Loading @@ -207,7 +208,7 @@ if __name__ == '__main__': for output in glob.glob(absolute_out.group(1) + '*'): output = path.relpath(output).replace('\\','/') output = re.sub('tests', CUT_PATH, output) diff_cmds.append('$DIFF_BIN '+out.group(1).replace(CUT_PATH + r'/renderer_short/ref',REF_PATH + r'/renderer_short/ref')+' '+out.group(1)+' >> $LOG_FILE 2>&1\n') diff_cmds.append('$DIFF_BIN '+output.replace(CUT_PATH + r'/renderer_short/ref',REF_PATH + r'/renderer_short/ref')+' '+ output +' >> $LOG_FILE 2>&1') outfile.write(('; ').join(diff_cmds)) outfile.write('\n') with open('scripts/script_footer.txt','r') as footer: Loading