Skip to content
Snippets Groups Projects
Verified Commit 6df75545 authored by dos's avatar dos
Browse files

sim: Mock sys.print_exception

It doesn't exist in CPython.
parent cd95f31c
No related branches found
No related tags found
1 merge request!600Simulator improvements
......@@ -9,6 +9,7 @@ import os
import sys
import builtins
import argparse
import traceback
projectpath = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
......@@ -128,6 +129,9 @@ def _stat(path):
os.stat = _stat
sys.print_exception = lambda x: print(traceback.format_exc())
def sim_main():
parser = argparse.ArgumentParser()
parser.add_argument(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment