Add Python 3 compatibility to macro

This commit is contained in:
Kurt Kremitzki 2017-07-13 04:10:32 -05:00
parent 4fc0b50239
commit 27fd7fc4f7

View file

@ -22,6 +22,7 @@
#* USA * #* USA *
#* * #* *
#*************************************************************************** #***************************************************************************
from __future__ import print_function
__title__="FreeCAD Parts Library Macro" __title__="FreeCAD Parts Library Macro"
__author__ = "Yorik van Havre" __author__ = "Yorik van Havre"
@ -448,4 +449,4 @@ if QtCore.QDir(LIBRARYPATH).exists():
else: else:
m.addDockWidget(QtCore.Qt.RightDockWidgetArea,ExpDockWidget(LIBRARYPATH)) m.addDockWidget(QtCore.Qt.RightDockWidgetArea,ExpDockWidget(LIBRARYPATH))
else: else:
print "Library path ", LIBRARYPATH, "not found." print("Library path ", LIBRARYPATH, "not found.")