]> git.ipfire.org Git - pakfire.git/commitdiff
Clean up import of version number of the module
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2016 13:55:26 +0000 (14:55 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2016 13:55:26 +0000 (14:55 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/__init__.py

index 10aaa20c07f462f6eb53bfb2de089b5f18cce41f..a15ff90479372f5bcaac5994acd05b971e8270f4 100644 (file)
 #                                                                             #
 ###############################################################################
 
+from .constants import PAKFIRE_VERSION as __version__
+
 # Initialize logging as soon as the module is loaded
 from . import logger
 log = logger.setup_logging()
 
 from . import base
 
-from .constants import PAKFIRE_VERSION
-__version__ = PAKFIRE_VERSION
-
 Pakfire        = base.Pakfire
 PakfireBuilder = base.PakfireBuilder
 PakfireServer  = base.PakfireServer
 
 # Log when loaded
-log.debug("Pakfire %s initialised" % PAKFIRE_VERSION)
+log.debug("Pakfire %s initialised" % __version__)