Merge pull request #201 from kkremitzki/py3compat

Add Python 3 compatibility to macro
This commit is contained in:
Yorik van Havre 2017-07-29 12:23:50 -03:00 committed by GitHub
commit 7d3498f6cc

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.")