Added check for the pcb_file (bogus during some tests)

This commit is contained in:
Salvador E. Tropea 2022-01-16 18:19:42 -03:00
parent 4d6b47edd0
commit da1da26983
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ class Globals(FiltersOptions):
self.pcb_finish = copper_finish
def config(self, parent):
if GS.ki6() and GS.pcb_file:
if GS.ki6() and GS.pcb_file and os.path.isfile(GS.pcb_file):
self.get_stack_up()
super().config(parent)
GS.global_output = self.set_global(GS.global_output, self.output, 'output')