This website requires JavaScript.
Explore
Help
Sign In
traverseda
/
cpython
Watch
1
Star
0
Fork
You've already forked cpython
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
d3e6e4bb8f
cpython
/
Tools
/
scripts
/
pydoc
6 lines
79 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add script form of pydoc so that it's present in beta1. Currently this just copies the __name__=='__main__' logic from pydoc.py. ?!ng can decide whether he wants to create a main() in pydoc, or rip it out of pydoc.py completely.
2001-02-28 16:55:10 -04:00
#!/usr/bin/env python
Call main routine in pydoc module (pydoc.cli).
2001-02-28 20:25:40 -04:00
import pydoc
[Patch #1005491 ] use __name__ == '__main__' in scripts
2004-08-09 14:27:55 -03:00
if __name__ == '__main__':
pydoc.cli()