python: Test: *.py: Fix python3 syntax
This commit is contained in:
@@ -10,7 +10,7 @@ import FreeCAD
|
||||
import Part
|
||||
import Draft
|
||||
|
||||
print "testPathArray started"
|
||||
print("testPathArray started")
|
||||
items = 4 # count
|
||||
centretrans = FreeCAD.Vector(0,0,0) # no translation
|
||||
#centretrans = FreeCAD.Vector(-5,-5,0) # translation
|
||||
@@ -18,9 +18,9 @@ orient = True # align to curve
|
||||
#orient = False # don't align to curve
|
||||
|
||||
s = FreeCADGui.Selection.getSelection()
|
||||
print "testPathArray: Objects in selection: ", len(s)
|
||||
print "First object in selection is a: ", s[0].Shape.ShapeType
|
||||
print "Second object in selection is a: ", s[1].Shape.ShapeType
|
||||
print("testPathArray: Objects in selection: ", len(s))
|
||||
print("First object in selection is a: ", s[0].Shape.ShapeType)
|
||||
print("Second object in selection is a: ", s[1].Shape.ShapeType)
|
||||
base = s[0]
|
||||
path = s[1]
|
||||
pathsubs = []
|
||||
@@ -28,7 +28,7 @@ pathsubs = []
|
||||
#o = Draft.makePathArray(base,path,items) # test with defaults
|
||||
o = Draft.makePathArray(base,path,items,centretrans,orient,pathsubs) # test with non-defaults
|
||||
|
||||
print "testPathArray ended"
|
||||
print("testPathArray ended")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user