Commit a7097c33 authored by sumpfralle's avatar sumpfralle

fixed broken import for python2.6


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@307 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent d7daede9
Version 0.2.4 - UNRELEASED
* join tangential moves (removes the inner points in a colinear set of adjacent path points)
* fixed careless import of Tkinter
* fixed typo that breaks PyCAM for Python 2.6
Version 0.2.3 - 2010-04-05
* GUI change: tool and process settings can be combined into tasks
......
......@@ -5,7 +5,7 @@ This reduces the memory consumption of a toolpath down to 1/3.
"""
try:
# this works for python 2.6 or above (saves memory)
from collections import namedtuple
import collections.namedtuple
tuple_point = collections.namedtuple("TuplePoint", "x y z")
get_point_object = lambda point: tuple_point(point.x, point.y, point.z)
except ImportError:
......
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