now should show up the correct revision number as part of version info

This commit is contained in:
Ismo Vuorinen
2010-07-25 16:42:08 +00:00
parent aab7e3eaf1
commit 8112759b6c

View File

@@ -1,5 +1,5 @@
# $Id$
import sys, time, datetime, os, optparse, errno
import sys, time, datetime, os, optparse, errno, re
def aeonview(argv):
"""
@@ -8,12 +8,13 @@ def aeonview(argv):
videos of elapsing time. works best with webcam-images from the net.
"""
__author = "Ismo Vuorinen (ivuorinen@gmail.com)"
__rev = re.search('([0-9]+)', '$Revision$')
__author = "Ismo Vuorinen (ivuorinen@gmail.com)"
parser = optparse.OptionParser(
usage='Usage: %prog [options]',
description="aeonview for timelapses",
version="%prog 0.1.($Revision$)"
version="%prog 0.1."+str(__rev)
)
basicopts = optparse.OptionGroup(parser,
@@ -174,6 +175,7 @@ def aeonview(argv):
else:
parser.print_help()
sys.exit(-1)