Import the Set module for python < 2.4
authorAntonio Ospite <ospite@studenti.unina.it>
Fri, 19 Jun 2009 13:04:58 +0000 (15:04 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 24 Sep 2009 17:17:45 +0000 (19:17 +0200)
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
vrm.py

diff --git a/vrm.py b/vrm.py
index 7ac4d83..d9c2d40 100755 (executable)
--- 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]