From 65cb64665ac3932b392012b9d12e4310bd50ebe4 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 31 Jul 2009 08:07:41 +0000 Subject: [PATCH] 2.5 Check for old py in UI scripts. Temp fix that'll go when the move to Py 3.1 is definite! :) --- release/ui/buttons_material.py | 6 ++++++ release/ui/buttons_scene.py | 6 ++++++ release/ui/buttons_world.py | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/release/ui/buttons_material.py b/release/ui/buttons_material.py index 8c977567324..c04fbd7e1da 100644 --- a/release/ui/buttons_material.py +++ b/release/ui/buttons_material.py @@ -1,6 +1,12 @@ import bpy +# If python version is less than 2.4, try to get set stuff from module +try: + set +except: + from sets import Set as set + class MaterialButtonsPanel(bpy.types.Panel): __space_type__ = "BUTTONS_WINDOW" __region_type__ = "WINDOW" diff --git a/release/ui/buttons_scene.py b/release/ui/buttons_scene.py index d34307d0291..f9ca02d2b4b 100644 --- a/release/ui/buttons_scene.py +++ b/release/ui/buttons_scene.py @@ -1,6 +1,12 @@ import bpy +# If python version is less than 2.4, try to get set stuff from module +try: + set +except: + from sets import Set as set + class RenderButtonsPanel(bpy.types.Panel): __space_type__ = "BUTTONS_WINDOW" __region_type__ = "WINDOW" diff --git a/release/ui/buttons_world.py b/release/ui/buttons_world.py index 62c720d09d1..e44d7102511 100644 --- a/release/ui/buttons_world.py +++ b/release/ui/buttons_world.py @@ -1,6 +1,12 @@ import bpy +# If python version is less than 2.4, try to get set stuff from module +try: + set +except: + from sets import Set as set + class WorldButtonsPanel(bpy.types.Panel): __space_type__ = "BUTTONS_WINDOW" __region_type__ = "WINDOW"