Skip to content

Commit c6c4b57

Browse files
committed
Added support for global output file name to the gerbers.
1 parent 7c11370 commit c6c4b57

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

kibot/out_gerber.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66
# Project: KiBot (formerly KiPlot)
77
# Adapted from: https://github.com/johnbeard/kiplot
88
from pcbnew import (PLOT_FORMAT_GERBER, FromMM, ToMM)
9+
from .gs import GS
910
from .out_any_layer import (AnyLayer, AnyLayerOptions)
1011
from .error import KiPlotConfigurationError
1112
from .macros import macros, document, output_class # noqa: F401
1213

1314

1415
class GerberOptions(AnyLayerOptions):
1516
def __init__(self):
16-
super().__init__()
17-
self._plot_format = PLOT_FORMAT_GERBER
1817
with document:
1918
self.use_aux_axis_as_origin = False
2019
""" use the auxiliar axis as origin for coordinates """
@@ -29,12 +28,14 @@ def __init__(self):
2928
self.create_gerber_job_file = True
3029
""" creates a file with information about all the generated gerbers.
3130
You can use it in gerbview to load all gerbers at once """
32-
self.gerber_job_file = '%f-%i.%x'
31+
self.gerber_job_file = GS.def_global_output
3332
""" name for the gerber job file (%i='job', %x='gbrjob') """
3433
self.use_gerber_x2_attributes = True
3534
""" use the extended X2 format """
3635
self.use_gerber_net_attributes = True
3736
""" include netlist metadata """
37+
super().__init__()
38+
self._plot_format = PLOT_FORMAT_GERBER
3839

3940
@property
4041
def gerber_precision(self):

0 commit comments

Comments
 (0)