summaryrefslogtreecommitdiffstats
path: root/Demo/scripts/pp.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/scripts/pp.py')
-rwxr-xr-xDemo/scripts/pp.py5
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)