Adapted to kicad-automation-scripts 1.3.x

This commit is contained in:
Salvador E. Tropea 2020-05-19 12:09:19 -03:00
parent 4a4126be47
commit 26b4f5c385
2 changed files with 6 additions and 6 deletions

View File

@ -196,8 +196,8 @@ class Plotter(object):
exit(misc.BOM_ERROR) exit(misc.BOM_ERROR)
def _run_drc(self, brd_file, ignore_unconnected, check_zone_fills): def _run_drc(self, brd_file, ignore_unconnected, check_zone_fills):
check_script(misc.CMD_PCBNEW_RUN_DRC, misc.URL_PCBNEW_RUN_DRC, '1.1.0') check_script(misc.CMD_PCBNEW_RUN_DRC, misc.URL_PCBNEW_RUN_DRC, '1.3.1')
cmd = [misc.CMD_PCBNEW_RUN_DRC, brd_file, self.cfg.outdir] cmd = [misc.CMD_PCBNEW_RUN_DRC, 'run_drc', brd_file, self.cfg.outdir]
# If we are in verbose mode enable debug in the child # If we are in verbose mode enable debug in the child
if logger.getEffectiveLevel() <= logging.DEBUG: if logger.getEffectiveLevel() <= logging.DEBUG:
cmd.insert(1, '-vv') cmd.insert(1, '-vv')
@ -584,7 +584,7 @@ class Plotter(object):
def _do_pcb_print(self, board, plot_ctrl, output, brd_file): def _do_pcb_print(self, board, plot_ctrl, output, brd_file):
check_script(misc.CMD_PCBNEW_PRINT_LAYERS, check_script(misc.CMD_PCBNEW_PRINT_LAYERS,
misc.URL_PCBNEW_PRINT_LAYERS, '1.1.2') misc.URL_PCBNEW_PRINT_LAYERS, '1.3.1')
to = output.options.type_options to = output.options.type_options
# Verify the inner layers # Verify the inner layers
layer_cnt = board.GetCopperLayerCount() layer_cnt = board.GetCopperLayerCount()
@ -597,7 +597,7 @@ class Plotter(object):
"Inner layer {} is not valid for this board" "Inner layer {} is not valid for this board"
.format(layer.layer)) .format(layer.layer))
outdir = plot_ctrl.GetPlotOptions().GetOutputDirectory() outdir = plot_ctrl.GetPlotOptions().GetOutputDirectory()
cmd = [misc.CMD_PCBNEW_PRINT_LAYERS, cmd = [misc.CMD_PCBNEW_PRINT_LAYERS, 'export',
'--output_name', to.output_name, '--output_name', to.output_name,
brd_file, outdir] brd_file, outdir]
if logger.getEffectiveLevel() <= logging.DEBUG: if logger.getEffectiveLevel() <= logging.DEBUG:

View File

@ -19,9 +19,9 @@ PLOT_ERROR = 14
CMD_EESCHEMA_DO = 'eeschema_do' CMD_EESCHEMA_DO = 'eeschema_do'
URL_EESCHEMA_DO = 'https://github.com/INTI-CMNB/kicad-automation-scripts' URL_EESCHEMA_DO = 'https://github.com/INTI-CMNB/kicad-automation-scripts'
CMD_PCBNEW_RUN_DRC = 'pcbnew_run_drc' CMD_PCBNEW_RUN_DRC = 'pcbnew_do'
URL_PCBNEW_RUN_DRC = URL_EESCHEMA_DO URL_PCBNEW_RUN_DRC = URL_EESCHEMA_DO
CMD_PCBNEW_PRINT_LAYERS = 'pcbnew_print_layers' CMD_PCBNEW_PRINT_LAYERS = 'pcbnew_do'
URL_PCBNEW_PRINT_LAYERS = URL_EESCHEMA_DO URL_PCBNEW_PRINT_LAYERS = URL_EESCHEMA_DO
CMD_KIBOM = 'KiBOM_CLI.py' CMD_KIBOM = 'KiBOM_CLI.py'
URL_KIBOM = 'https://github.com/INTI-CMNB/KiBoM' URL_KIBOM = 'https://github.com/INTI-CMNB/KiBoM'