[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41001] trunk/blender/scons/scons.py: error when running scons with py3, seen a few complaints about this recently.

Campbell Barton ideasman42 at gmail.com
Fri Oct 14 06:12:21 CEST 2011


Revision: 41001
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41001
Author:   campbellbarton
Date:     2011-10-14 04:12:17 +0000 (Fri, 14 Oct 2011)
Log Message:
-----------
error when running scons with py3, seen a few complaints about this recently.

Modified Paths:
--------------
    trunk/blender/scons/scons.py

Modified: trunk/blender/scons/scons.py
===================================================================
--- trunk/blender/scons/scons.py	2011-10-14 02:31:04 UTC (rev 41000)
+++ trunk/blender/scons/scons.py	2011-10-14 04:12:17 UTC (rev 41001)
@@ -24,6 +24,15 @@
 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #
 
+# -----------------------------------
+# quick patch to avoid user confusion
+if not hasattr(dict, "has_key"):
+    import sys
+    print("Python2.x needed, using %d.%d\nAborting!\n" % sys.version_info[:2])
+    sys.exit(1)
+# end patch - campbell
+# --------------------
+
 __revision__ = "src/script/scons.py 4043 2009/02/23 09:06:45 scons"
 
 __version__ = "1.2.0.d20090223"




More information about the Bf-blender-cvs mailing list