summaryrefslogtreecommitdiffstats
path: root/Lib/pdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-15 01:38:23 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-15 01:38:23 (GMT)
commitc2047c19f5afa001261cad45b0ada852450b35bb (patch)
tree435bfd8f94a849f7359c44b9698a1de3b1390176 /Lib/pdb.py
parente0e59829e006ddf670d0cbffa9b9d00b71227d70 (diff)
downloadcpython-c2047c19f5afa001261cad45b0ada852450b35bb.zip
cpython-c2047c19f5afa001261cad45b0ada852450b35bb.tar.gz
cpython-c2047c19f5afa001261cad45b0ada852450b35bb.tar.bz2
When run as a script, don't pass a fake __main__ dictionary; use the
real one.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-xLib/pdb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py
index de769bb..fae6b2c 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -893,4 +893,4 @@ if __name__=='__main__':
# Insert script directory in front of module search path
sys.path.insert(0, os.path.dirname(filename))
- run('execfile(' + `filename` + ')', {'__name__': '__main__'})
+ run('execfile(' + `filename` + ')')