Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use latest git revision as version information

  • Loading branch information...
commit 47c34a1a11457d773a04405281c1a1940c827c20 1 parent fb20e39
@normanr authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mxit.py
View
6 mxit.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.