From 49fda9470d3abe0e8f19058ea6e893209bf250f7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 6 May 2009 22:16:28 +0000 Subject: [PATCH] python is not being very helpful! It seems 2.5 gives the version as a string, 2.6 as ints --- config/linux2-config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/linux2-config.py b/config/linux2-config.py index b0c989f1b5c..6d207dc40e6 100644 --- a/config/linux2-config.py +++ b/config/linux2-config.py @@ -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()