[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [20089] trunk/blender/config/linux2-config .py: python is not being very helpful!

Campbell Barton ideasman42 at gmail.com
Thu May 7 00:16:28 CEST 2009


Revision: 20089
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=20089
Author:   campbellbarton
Date:     2009-05-07 00:16:28 +0200 (Thu, 07 May 2009)

Log Message:
-----------
python is not being very helpful!
It seems 2.5 gives the version as a string, 2.6 as ints

Modified Paths:
--------------
    trunk/blender/config/linux2-config.py

Modified: trunk/blender/config/linux2-config.py
===================================================================
--- trunk/blender/config/linux2-config.py	2009-05-06 21:47:24 UTC (rev 20088)
+++ trunk/blender/config/linux2-config.py	2009-05-06 22:16:28 UTC (rev 20089)
@@ -10,7 +10,7 @@
 	'''
 	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()





More information about the Bf-blender-cvs mailing list