diff options
Diffstat (limited to 'lab/run_trace.py')
-rw-r--r-- | lab/run_trace.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lab/run_trace.py b/lab/run_trace.py index 27c24a1d..ddfbfe57 100644 --- a/lab/run_trace.py +++ b/lab/run_trace.py @@ -31,5 +31,6 @@ def trace(frame, event, arg): the_program = sys.argv[1] +code = open(the_program).read() sys.settrace(trace) -execfile(the_program) +exec(code) |