Fixed: erc/drc not taking global.output pattern.
This commit is contained in:
parent
7861f6efe6
commit
f744892810
|
|
@ -29,7 +29,8 @@ class Run_DRC(BasePreFlight): # noqa: F821
|
|||
def get_targets(self):
|
||||
""" Returns a list of targets generated by this preflight """
|
||||
load_board()
|
||||
return [Optionable.expand_filename(None, GS.out_dir, GS.def_global_output, 'drc', 'txt')]
|
||||
out_pattern = GS.global_output if GS.global_output is not None else GS.def_global_output
|
||||
return [Optionable.expand_filename(None, GS.out_dir, out_pattern, 'drc', 'txt')]
|
||||
|
||||
def run(self):
|
||||
check_script(CMD_PCBNEW_RUN_DRC, URL_PCBNEW_RUN_DRC, '1.4.0')
|
||||
|
|
|
|||
|
|
@ -29,7 +29,8 @@ class Run_ERC(BasePreFlight): # noqa: F821
|
|||
def get_targets(self):
|
||||
""" Returns a list of targets generated by this preflight """
|
||||
load_sch()
|
||||
return [Optionable.expand_filename_sch(None, GS.out_dir, GS.def_global_output, 'erc', 'txt')]
|
||||
out_pattern = GS.global_output if GS.global_output is not None else GS.def_global_output
|
||||
return [Optionable.expand_filename_sch(None, GS.out_dir, out_pattern, 'erc', 'txt')]
|
||||
|
||||
def run(self):
|
||||
check_eeschema_do()
|
||||
|
|
|
|||
Loading…
Reference in New Issue