lkd-planet/DJAGEN/branches/mustafa_branch/djagen/captcha/__init__.py

13 lines
367 B
Python
Raw Normal View History

2010-07-06 19:25:42 +03:00
VERSION = (0, 1, 7)
def get_version(svn=False):
"Returns the version as a human-format string."
v = '.'.join([str(i) for i in VERSION])
if svn:
from django.utils.version import get_svn_revision
import os
svn_rev = get_svn_revision(os.path.dirname(__file__))
if svn_rev:
v = '%s-%s' % (v, svn_rev)
return v