Added check for pcbnew_run_drc 1.1.0 or newer
This commit is contained in:
parent
5a386bdd32
commit
ef3ef2bbe6
|
|
@ -153,6 +153,7 @@ class Plotter(object):
|
||||||
logger.error('No `pcbnew_run_drc` command found.\n'
|
logger.error('No `pcbnew_run_drc` command found.\n'
|
||||||
'Please install it, visit: https://github.com/INTI-CMNB/kicad-automation-scripts')
|
'Please install it, visit: https://github.com/INTI-CMNB/kicad-automation-scripts')
|
||||||
exit(misc.MISSING_TOOL)
|
exit(misc.MISSING_TOOL)
|
||||||
|
check_version('pcbnew_run_drc','1.1.0')
|
||||||
cmd = ['pcbnew_run_drc', brd_file, '.']
|
cmd = ['pcbnew_run_drc', brd_file, '.']
|
||||||
# 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:
|
||||||
|
|
@ -170,7 +171,7 @@ class Plotter(object):
|
||||||
logger.error('DRC errors: %d', -ret)
|
logger.error('DRC errors: %d', -ret)
|
||||||
else:
|
else:
|
||||||
logger.error('DRC returned %d', ret)
|
logger.error('DRC returned %d', ret)
|
||||||
exit(DRC_ERROR)
|
exit(misc.DRC_ERROR)
|
||||||
|
|
||||||
def _output_is_layer(self, output):
|
def _output_is_layer(self, output):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue