From 97e95ff7c570ac4fbf65390db1749c1a55160063 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Wed, 22 Jul 2020 18:30:58 -0300 Subject: [PATCH] Fixed drill output default value not shown in help. The docstring macro can evaluate attributes. --- kiplot/out_any_drill.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kiplot/out_any_drill.py b/kiplot/out_any_drill.py index b29c5f3a..6d3905c0 100644 --- a/kiplot/out_any_drill.py +++ b/kiplot/out_any_drill.py @@ -14,7 +14,7 @@ class DrillMap(Optionable): def __init__(self): super().__init__() with document: - self.output = self._out_def + self.output = '%f-%i.%x' # self._out_def not supported by the macro """ name for the map file, KiCad defaults if empty (%i='PTH_drill_map') """ self.type = 'pdf' """ [hpgl,ps,gerber,dxf,svg,pdf] format for a graphical drill map """ # pragma: no cover @@ -26,7 +26,8 @@ class DrillReport(Optionable): super().__init__() with document: self.filename = '' - """ name of the drill report. Not generated unless a name is specified. (%i='drill_report' %x='txt') """ # pragma: no cover + """ name of the drill report. Not generated unless a name is specified. + (%i='drill_report' %x='txt') """ # pragma: no cover self._unkown_is_error = True