diff options
author | Barry Warsaw <barry@python.org> | 2001-07-10 21:42:04 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-07-10 21:42:04 (GMT) |
commit | 60e1886e872f25fe3518e0ff48bbe50f59c3be4c (patch) | |
tree | ca76213bba0833af0da0b591b59bdbc8440d1065 /Tools/pynche/Main.py | |
parent | 95cf9d9f4e6aae20601ea4860f1cae0b011a6cf9 (diff) | |
download | cpython-60e1886e872f25fe3518e0ff48bbe50f59c3be4c.zip cpython-60e1886e872f25fe3518e0ff48bbe50f59c3be4c.tar.gz cpython-60e1886e872f25fe3518e0ff48bbe50f59c3be4c.tar.bz2 |
__version__: Bump to 1.2
De-string-module-ification.
Diffstat (limited to 'Tools/pynche/Main.py')
-rw-r--r-- | Tools/pynche/Main.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Tools/pynche/Main.py b/Tools/pynche/Main.py index 894d804..8cea31c 100644 --- a/Tools/pynche/Main.py +++ b/Tools/pynche/Main.py @@ -46,16 +46,15 @@ Where: initialcolor initial color, as a color name or #RRGGBB format - """ -__version__ = '1.1' +__version__ = '1.2' import sys import os -import string import getopt import ColorDB + from PyncheWidget import PyncheWidget from Switchboard import Switchboard from StripViewer import StripViewer @@ -79,15 +78,17 @@ RGB_TXT = [ +# Do this because PyncheWidget.py wants to get at the interpolated docstring +# too, for its Help menu. def docstring(): - return string.rstrip(__doc__ % globals()) + return __doc__ % globals() -def usage(status, msg=''): +def usage(code, msg=''): print docstring() if msg: print msg - sys.exit(status) + sys.exit(code) @@ -217,6 +218,7 @@ Version: %s''' % __version__ run(app, sb) sb.save_views() + if __name__ == '__main__': main() |