Update Path to py3-compatible printing

This commit is contained in:
Kurt Kremitzki
2017-01-29 22:11:45 -06:00
committed by looooo
parent 762f1bcb9e
commit be2a827a69
23 changed files with 92 additions and 77 deletions

View File

@@ -22,6 +22,7 @@
# * *
# ***************************************************************************
from __future__ import print_function
import FreeCAD
import Path
from PySide import QtCore, QtGui
@@ -211,7 +212,7 @@ class ObjectFace:
# To reload this from FreeCAD, use: import PathScripts.PathFace; reload(PathScripts.PathFace)
def execute(self, obj):
print "in execute"
print("in execute")
if not obj.Active:
path = Path.Path("(inactive operation)")
@@ -260,7 +261,7 @@ class ObjectFace:
if isinstance (shape, Part.Face):
faces.append(shape)
else:
print ('falling out')
print('falling out')
return
planeshape = Part.makeCompound(faces)