diff --git a/kikit/export.py b/kikit/export.py index 97f36bdf..fccaff48 100644 --- a/kikit/export.py +++ b/kikit/export.py @@ -131,7 +131,7 @@ def gerberImpl(boardfile: str, outputdir: str, plot_plan: List[LayerToPlot]=full pctl.SetLayer(layer_to_plot.id) suffix = "" if settings["NoSuffix"] else layer_to_plot.name pctl.OpenPlotfile(suffix, PLOT_FORMAT_GERBER, layer_to_plot.description) - jobfile_writer.AddGbrFile(layer_to_plot.id, os.path.basename(popt.GetPlotFileName())) + jobfile_writer.AddGbrFile(layer_to_plot.id, os.path.basename(pctl.GetPlotFileName())) if pctl.PlotLayer() == False: print("plot error") @@ -143,7 +143,7 @@ def gerberImpl(boardfile: str, outputdir: str, plot_plan: List[LayerToPlot]=full pctl.SetLayer(innerlyr) lyrname = "" if settings["NoSuffix"] else 'inner{}'.format(innerlyr) pctl.OpenPlotfile(lyrname, PLOT_FORMAT_GERBER, "inner") - jobfile_writer.AddGbrFile(innerlyr, os.path.basename(popt.GetPlotFileName())) + jobfile_writer.AddGbrFile(innerlyr, os.path.basename(pctl.GetPlotFileName())) if pctl.PlotLayer() == False: print("plot error")