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):
"BoundaryHighZ": 0,
"TypeRelativeMargin": True,
"TypeCustom": False,
"RelativeUnit": _RELATIVE_UNIT.index("%"),
"ToolLimit": _BOUNDARY_MODES.index("along"),
# Use "list" conversion here: python 2.5 does not support
# "index" for tuples.
"RelativeUnit": list(_RELATIVE_UNIT).index("%"),
"ToolLimit": list(_BOUNDARY_MODES).index("along"),
"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