diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-05-07 02:16:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-05-07 02:16:28 +0400 |
commit | 49fda9470d3abe0e8f19058ea6e893209bf250f7 (patch) | |
tree | a3b235dc16f266332b3579470fcbee542edcc8a9 /config | |
parent | 3d60c4e746f08a3a7e583ea4461122f3358e21da (diff) |
python is not being very helpful!
It seems 2.5 gives the version as a string, 2.6 as ints
Diffstat (limited to 'config')
-rw-r--r-- | config/linux2-config.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |