Add Python 3 compatibility to macro
This commit is contained in:
parent
4fc0b50239
commit
27fd7fc4f7
1 changed files with 2 additions and 1 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue