projects
/
vrm.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Import the Set module for python < 2.4
[vrm.git]
/
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]