scripts/StepImporter/CppGenerator.py: return 0 exit code on success

pull/2392/head
Charlie Gettys 2019-03-27 13:06:48 -04:00
parent 4e714fce0e
commit 44e89520eb
1 changed files with 3 additions and 0 deletions

View File

@ -300,5 +300,8 @@ def work(filename):
with open(output_file_cpp,'wt') as outp: with open(output_file_cpp,'wt') as outp:
outp.write(inp.read().replace('{schema-static-table}',schema_table).replace('{converter-impl}',converters)) outp.write(inp.read().replace('{schema-static-table}',schema_table).replace('{converter-impl}',converters))
# Finished without error, so return 0
return 0
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(work(sys.argv[1] if len(sys.argv)>1 else 'schema.exp')) sys.exit(work(sys.argv[1] if len(sys.argv)>1 else 'schema.exp'))