()
| 173 | |
| 174 | |
| 175 | def 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 | |
| 194 | if __name__ == '__main__': |
| 195 | main() |
no test coverage detected