python is not being very helpful!

It seems 2.5 gives the version as a string, 2.6 as ints
This commit is contained in:
2009-05-06 22:16:28 +00:00
parent 3d60c4e746
commit 49fda9470d

View File

@@ -10,7 +10,7 @@ def py_version_string():
'''
import platform
ver = platform.python_version_tuple()
return '%d.%d' % (ver[0], ver[1])
return '%d.%d' % (int(ver[0]), int(ver[1])) # py2.5 uses strings, 2.6 ints
BF_PYTHON = '/usr'
BF_PYTHON_VERSION = py_version_string()