[Python-checkins] r58950 - python/branches/release25-maint/Lib/pdb.py
christian.heimes
python-checkins at python.org
Mon Nov 12 18:28:45 CET 2007
Author: christian.heimes
Date: Mon Nov 12 18:28:45 2007
New Revision: 58950
Modified:
python/branches/release25-maint/Lib/pdb.py
Log:
Fixed #1254: pdb fails to launch some script.
Modified: python/branches/release25-maint/Lib/pdb.py
==============================================================================
--- python/branches/release25-maint/Lib/pdb.py (original)
+++ python/branches/release25-maint/Lib/pdb.py Mon Nov 12 18:28:45 2007
@@ -1123,7 +1123,7 @@
# Start with fresh empty copy of globals and locals and tell the script
# that it's being run as __main__ to avoid scripts being able to access
# the pdb.py namespace.
- globals_ = {"__name__" : "__main__"}
+ globals_ = {"__name__" : "__main__", "__file__" : filename}
locals_ = globals_
# When bdb sets tracing, a number of call and line events happens
More information about the Python-checkins
mailing list