()
| 1332 | # This code provides error logging facilities. |
| 1333 | |
| 1334 | def main(): |
| 1335 | # Figure out where files should be stored. |
| 1336 | public_path = os.path.join('Message Storage', 'V2.5') |
| 1337 | private_path = os.path.join('..', 'FSM Settings') |
| 1338 | # Execute the main class (static) function of FSM. |
| 1339 | with capture_stderr() as stderr: |
| 1340 | FSM.main(public_path, private_path) |
| 1341 | # Cleanup stderr and save and errors to file. |
| 1342 | record(stderr, private_path, 'errorlog.pickle') |
| 1343 | |
| 1344 | @contextlib.contextmanager |
| 1345 | def capture_stderr(): |
no test coverage detected