python3 print fix to scripts examples

Print function needs to use brackets to be compatible
both with the python2 and python3.
Without this fix following error was generated
with flags
-DKICAD_SCRIPTING_MODULES=ON
-DKICAD_SCRIPTING_PYTHON3=ON

/usr/share/kicad/demos/python_scripts_examples/gen_gerber_and_drill_files_board.py", line 95
print 'plot %s' % pctl.GetPlotFileName()
^
SyntaxError: invalid syntax

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8303

Signed-off-by: Mika Laitio <[email protected]>
This commit is contained in:
Mika Laitio
2021-04-26 15:20:14 +00:00
committed by Seth Hillbrand
parent de2f60fe4c
commit d13fb85d7f
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ plot_plan = [
for layer_info in plot_plan:
pctl.SetLayer(layer_info[1])
pctl.OpenPlotfile(layer_info[0], PLOT_FORMAT_GERBER, layer_info[2])
print layer_info[0]
print(layer_info[0])
pctl.PlotLayer()
# Our fabricators want two additional gerbers: