mirror of
https://github.com/ivuorinen/aeonview.git
synced 2026-03-07 07:56:17 +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,
|
||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user