py3: fix some simple incompapilities
issue 0000995
This commit is contained in:
@@ -146,7 +146,7 @@ def profile(curve, side_of_line, radius=1.0, vertfeed=0.0, horizfeed=0.0, offset
|
||||
print("in profile: 151")
|
||||
offset_curve = area.Curve(curve)
|
||||
if offset_curve.getNumVertices() <= 1:
|
||||
raise Exception, "Sketch has no elements!"
|
||||
raise Exception("Sketch has no elements!")
|
||||
if side_of_line == "On":
|
||||
use_CRC = False
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ def export(selection, filename, argstring):
|
||||
|
||||
gobjects = []
|
||||
for g in selection[0].Group:
|
||||
if g.Name <> 'Machine': # filtering out gcode home position from Machine object
|
||||
if g.Name != 'Machine': # filtering out gcode home position from Machine object
|
||||
gobjects.append(g)
|
||||
|
||||
for obj in gobjects:
|
||||
|
||||
Reference in New Issue
Block a user