diff options
author | Guido van Rossum <guido@python.org> | 1998-10-15 01:38:23 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-15 01:38:23 +0000 |
commit | 8317d37bfcce12222dcaeaec7a8790c9d6acd7a9 (patch) | |
tree | 4d547d580ef1130d1ff94cb22da43ac58940c9ba /Lib/pdb.py | |
parent | 2f833b0b26c01330204ea659ad72c8085f77328f (diff) | |
download | cpython-8317d37bfcce12222dcaeaec7a8790c9d6acd7a9.tar.gz |
When run as a script, don't pass a fake __main__ dictionary; use the
real one.
Diffstat (limited to 'Lib/pdb.py')
-rwxr-xr-x | Lib/pdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pdb.py b/Lib/pdb.py index de769bb87a..fae6b2c604 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` + ')') |