insert version number and build date in the globals

This commit is contained in:
Schrolli 2015-07-02 07:33:27 +02:00
parent fdc5f6e40c
commit ab4b63daac
3 changed files with 23 additions and 8 deletions

View file

@ -151,6 +151,8 @@ try:
# For debug display/log args
#
try:
logging.debug("SW Version: %s",globals.getVers("vers"))
logging.debug("Build Date: %s",globals.getVers("date"))
logging.debug("BOSWatch given arguments")
if args.test:
logging.debug(" - Test-Mode!")

View file

@ -25,4 +25,12 @@ filterList = []
# idDescribing
fmsDescribtionList = {}
zveiDescribtionList = {}
ricDescribtionList = {}
ricDescribtionList = {}
# returns the Version number
# function -> read only in script
def getVers(mode="vers"):
if mode == "vers":
return "2.0-RC"
elif mode == "date":
return " 2015/07/02"

View file

@ -10,6 +10,8 @@ Shows the header in shell if quiet mode is not active
@requires: none
"""
from includes import globals
def printHeader(args):
"""
Prints the header to the shell
@ -20,14 +22,17 @@ def printHeader(args):
@return: nothing
"""
try:
print " ____ ____ ______ __ __ __ "
print " / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ b"
print " / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ e"
print " / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / t"
print " /_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ a"
print " German BOS Information Script "
print " by Bastian Schroll, Jens Herrmann "
print " ____ ____ ______ __ __ __ "
print " / __ )/ __ \/ ___/ | / /___ _/ /______/ /_ "
print " / __ / / / /\__ \| | /| / / __ `/ __/ ___/ __ \ "
print " / /_/ / /_/ /___/ /| |/ |/ / /_/ / /_/ /__/ / / / "
print " /_____/\____//____/ |__/|__/\__,_/\__/\___/_/ /_/ "
print " German BOS Information Script "
print " by Bastian Schroll, Jens Herrmann "
print ""
print "SW Version: "+globals.getVers("vers")
print "Build Date: "+globals.getVers("date")
print ""
print "Frequency: "+args.freq
print "Device-ID: "+str(args.device)