Commit f1f70c97 authored by sumpfralle's avatar sumpfralle

fixed issue with Python 2.5 (tuples don't offer "index")


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1224 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 131e25d6
...@@ -412,8 +412,10 @@ class BoundsDict(pycam.Plugins.ObjectWithAttributes): ...@@ -412,8 +412,10 @@ class BoundsDict(pycam.Plugins.ObjectWithAttributes):
"BoundaryHighZ": 0, "BoundaryHighZ": 0,
"TypeRelativeMargin": True, "TypeRelativeMargin": True,
"TypeCustom": False, "TypeCustom": False,
"RelativeUnit": _RELATIVE_UNIT.index("%"), # Use "list" conversion here: python 2.5 does not support
"ToolLimit": _BOUNDARY_MODES.index("along"), # "index" for tuples.
"RelativeUnit": list(_RELATIVE_UNIT).index("%"),
"ToolLimit": list(_BOUNDARY_MODES).index("along"),
"Models": [], "Models": [],
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment