diff options
Diffstat (limited to 'Demo/scripts/pp.py')
-rwxr-xr-x | Demo/scripts/pp.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Demo/scripts/pp.py b/Demo/scripts/pp.py index 486986a..9010b7a 100755 --- a/Demo/scripts/pp.py +++ b/Demo/scripts/pp.py @@ -123,8 +123,9 @@ import tempfile fp = tempfile.NamedTemporaryFile() fp.write(program) fp.flush() +script = open(tfn).read() if DFLAG: import pdb - pdb.run('execfile(%r)' % (tfn,)) + pdb.run(script) else: - execfile(tfn) + exec(script) |