Support 'python -m pudb script.py' on 2.6+.

This commit is contained in:
Andreas Kloeckner 2012-05-27 10:55:21 -04:00
parent 5eefca6f63
commit 127388b494
2 changed files with 7 additions and 0 deletions

View File

@ -57,6 +57,10 @@ into the piece of code you want to debug, or run the entire script with::
python -m pudb.run my-script.py python -m pudb.run my-script.py
In Python 2.6 and higher, you can save four keystrokes and type::
python -m pudb my-script.py
Documentation and Support Documentation and Support
------------------------- -------------------------

3
pudb/__main__.py Normal file
View File

@ -0,0 +1,3 @@
if __name__ == "__main__":
from pudb.run import main
main()