Added check for pcbnew_run_drc 1.1.0 or newer

This commit is contained in:
Salvador E. Tropea 2020-03-18 23:19:40 -03:00
parent 5a386bdd32
commit ef3ef2bbe6
1 changed files with 2 additions and 1 deletions

View File

@ -153,6 +153,7 @@ class Plotter(object):
logger.error('No `pcbnew_run_drc` command found.\n'
'Please install it, visit: https://github.com/INTI-CMNB/kicad-automation-scripts')
exit(misc.MISSING_TOOL)
check_version('pcbnew_run_drc','1.1.0')
cmd = ['pcbnew_run_drc', brd_file, '.']
# If we are in verbose mode enable debug in the child
if logger.getEffectiveLevel() <= logging.DEBUG:
@ -170,7 +171,7 @@ class Plotter(object):
logger.error('DRC errors: %d', -ret)
else:
logger.error('DRC returned %d', ret)
exit(DRC_ERROR)
exit(misc.DRC_ERROR)
def _output_is_layer(self, output):