]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Output version on starting application
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 13 Sep 2018 13:53:49 +0000 (15:53 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 13 Sep 2018 13:53:49 +0000 (15:53 +0200)
lib/cr_vmware_tpl/__init__.py
lib/cr_vmware_tpl/app.py

index 3934b4245535bc542258ee1f7bdaa868c30ab747..771370fa7853573abbd7b3aa8c011ba32e9a543a 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/env python3
 # -*- coding: utf-8 -*-
 
-__version__ = '0.1.1'
+__version__ = '0.1.2'
 
 # vim: ts=4 et list
index 55e36915a28c466702a39cf01ac32f2303360ca7..0e5128b42577ca15dfed3cf71b8b61ee7b93e8f0 100644 (file)
@@ -21,6 +21,8 @@ import getpass
 # Third party modules
 
 # Own modules
+from . import __version__ as GLOBAL_VERSION
+
 from .errors import PpAppError
 
 from .common import terminal_can_colors
@@ -34,7 +36,7 @@ from .config import CrTplConfiguration
 
 from .handler import ExpectedHandlerError, CrTplHandler
 
-__version__ = '0.6.2'
+__version__ = '0.6.3'
 LOG = logging.getLogger(__name__)
 
 
@@ -49,7 +51,7 @@ class CrTplApplication(PpBaseObject):
 
     # -------------------------------------------------------------------------
     def __init__(
-        self, appname=None, verbose=0, version=__version__, base_dir=None,
+        self, appname=None, verbose=0, version=GLOBAL_VERSION, base_dir=None,
             initialized=False, usage=None, description=None,
             argparse_epilog=None, argparse_prefix_chars='-', env_prefix=None):
 
@@ -440,7 +442,8 @@ class CrTplApplication(PpBaseObject):
 
         """
 
-        LOG.info("Starting ...")
+        LOG.info("Starting {a!r}, version {!v} ...".format(
+            a=self.appname, v=self.version))
 
         try:
             ret = self.handler()