mirror of
https://github.com/ivuorinen/aeonview.git
synced 2026-03-07 05:56:14 +00:00
now should show up the correct revision number as part of version info
This commit is contained in:
@@ -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,
|
||||||
@@ -174,6 +175,7 @@ def aeonview(argv):
|
|||||||
else:
|
else:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user