Fixed: erc/drc not taking global.output pattern.

This commit is contained in:
Salvador E. Tropea 2021-02-10 16:51:17 -03:00
parent 7861f6efe6
commit f744892810
2 changed files with 4 additions and 2 deletions

View File

@ -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')

View File

@ -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()