Fixed version regex
[0publish-gui.git] / 0publish-gui
blob7cc0835b4bc78fc49ba27fba6311fa3af32df285
1 #!/usr/bin/env python
2 import rox, sys
3 from optparse import OptionParser
4 from rox import g
6 if sys.version_info < (2, 4):
7 raise Exception('0publish-gui requires Python >= 2.4. You have %s' %
8 '.'.join(map(str, sys.version_info)))
10 from main import FeedEditor, choose_feed
12 version = '0.13'
13 parser = OptionParser(usage="usage: %prog [options] interface")
14 parser.add_option("-V", "--version", help="display version information", action='store_true')
15 (options, args) = parser.parse_args()
17 if options.version:
18 print "0publish-gui (zero-install) " + version
19 print "Copyright (C) 2007 Thomas Leonard"
20 print "This program comes with ABSOLUTELY NO WARRANTY,"
21 print "to the extent permitted by law."
22 print "You may redistribute copies of this program"
23 print "under the terms of the GNU General Public License."
24 print "For more information about these matters, see the file named COPYING."
25 sys.exit(0)
27 if args:
28 for file in args:
29 editor = FeedEditor(file)
30 editor.window.show()
31 #editor.add_version()
32 else:
33 editor = choose_feed()
34 editor.window.show()
36 rox.mainloop()