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$ # $Id$
import sys, time, datetime, os, optparse, errno import sys, time, datetime, os, optparse, errno, re
def aeonview(argv): def aeonview(argv):
""" """
@@ -8,12 +8,13 @@ def aeonview(argv):
videos of elapsing time. works best with webcam-images from the net. 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( parser = optparse.OptionParser(
usage='Usage: %prog [options]', usage='Usage: %prog [options]',
description="aeonview for timelapses", description="aeonview for timelapses",
version="%prog 0.1.($Revision$)" version="%prog 0.1."+str(__rev)
) )
basicopts = optparse.OptionGroup(parser, basicopts = optparse.OptionGroup(parser,
@@ -178,6 +179,7 @@ def aeonview(argv):
# http://stackoverflow.com/questions/600268/mkdir-p-functionality-in-python/600612#600612 # http://stackoverflow.com/questions/600268/mkdir-p-functionality-in-python/600612#600612
def mkdir_p(path): def mkdir_p(path):
try: try: