MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / main

Function main

PythonAPI/docs/bp_doc_gen.py:175–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173
174
175def main():
176
177 script_path = os.path.dirname(os.path.abspath(__file__))
178
179 try:
180 docs = generate_pb_docs()
181
182 except RuntimeError:
183 print("\n [ERROR] Can't establish connection with the simulator")
184 print(" .---------------------------------------------------.")
185 print(" | Make sure the simulator is connected! |")
186 print(" '---------------------------------------------------'\n")
187 # We don't provide an error to prvent Travis checks failing
188 sys.exit(0)
189
190 with open(os.path.join(script_path, '../../Docs/bp_library.md'), 'w') as md_file:
191 md_file.write(docs)
192 print("Done!")
193
194if __name__ == '__main__':
195 main()

Callers 1

bp_doc_gen.pyFile · 0.70

Calls 2

generate_pb_docsFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected