summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-10-24 00:22:35 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-10-24 00:22:35 +0200
commit147ed67257f351737707c7189b072973a7e9fffc (patch)
treec4c6b9ba2f690e9694d89639ec4895e19a4c8764 /portato
parentb243b009bb094c06ca9d60e81cf4700e48dc2947 (diff)
downloadportato-147ed67257f351737707c7189b072973a7e9fffc.tar.gz
portato-147ed67257f351737707c7189b072973a7e9fffc.tar.bz2
portato-147ed67257f351737707c7189b072973a7e9fffc.zip
Also show revision during startup and with -v
Diffstat (limited to '')
-rw-r--r--portato/__init__.py6
1 files changed, 5 insertions, 1 deletions
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