From c0cad5c078eca627696971112e37153cedc13072 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 19 Jun 2009 15:04:58 +0200 Subject: [PATCH] Import the Set module for python < 2.4 Signed-off-by: Antonio Ospite --- vrm.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vrm.py b/vrm.py index 7ac4d83..d9c2d40 100755 --- a/vrm.py +++ b/vrm.py @@ -99,6 +99,12 @@ from Blender.Mathutils import * from math import * import sys, time +try: + set() +except NameError: + from sets import Set as set + + def uniq(alist): tmpdict = dict() return [tmpdict.setdefault(e,e) for e in alist if e not in tmpdict] -- 2.1.4