Permalink
Browse files

Use latest git revision as version information

  • Loading branch information...
1 parent fb20e39 commit 47c34a1a11457d773a04405281c1a1940c827c20 @normanr committed Aug 22, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 mxit.py
View
@@ -1,6 +1,8 @@
#!/usr/bin/python
-# $Id$
-version = 'CVS ' + '$Revision$'.split()[1]
+try:
+ version = 'git ' + open(os.path.join(os.path.dirname(__file__), '.git/refs/heads/master')).read().strip()
+except:
+ version = 'unknown'
#
# MXit Transport
# 2006 Copyright (c) Norman Rasmussen

0 comments on commit 47c34a1

Please sign in to comment.