From 147ed67257f351737707c7189b072973a7e9fffc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 24 Oct 2009 00:22:35 +0200 Subject: Also show revision during startup and with -v --- portato/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'portato') diff --git a/portato/__init__.py b/portato/__init__.py index 44a4da4..98c019d 100644 --- a/portato/__init__.py +++ b/portato/__init__.py @@ -17,9 +17,13 @@ import sys, os from optparse import OptionParser, SUPPRESS_HELP from .log import start as logstart -from .constants import LOCALE_DIR, APP, VERSION +from .constants import LOCALE_DIR, APP, VERSION, REVISION from .helper import debug, info, error +# set better version info +if REVISION: + VERSION = '%s (git: %s)' % (VERSION, REVISION) + # listener-handling __listener = None -- cgit v1.2.3