Skip to content

Commit

Permalink
Use latest git revision as version information
Browse files Browse the repository at this point in the history
  • Loading branch information
normanr committed Aug 22, 2010
1 parent fb20e39 commit 47c34a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mxit.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 47c34a1

Please sign in to comment.