[Quick Start][PCB Print] Fixed tools check

- Changes in the toolchain
This commit is contained in:
Salvador E. Tropea 2022-09-07 09:11:27 -03:00
parent e177ed1079
commit 9cd284a9c0
1 changed files with 3 additions and 4 deletions

View File

@ -1093,13 +1093,12 @@ class PCB_Print(BaseOutput): # noqa: F821
if GS.check_tool(name, 'rsvg1') is None:
logger.warning(W_MISSTOOL+'Disabling most printed formats')
disabled |= {'PDF', 'PNG', 'EPS', 'PS'}
elif GS.check_tool(name, 'rsvg2') is None:
logger.warning(W_MISSTOOL+'Disabling EPS PCB print')
disabled.add('EPS')
# Check we can convert to PS
if GS.check_tool(name, 'Ghostscript') is None:
logger.warning(W_MISSTOOL+'Disabling postscript/PDF printed format')
disabled |= {'PDF', 'EPS', 'PS'}
disabled |= {'PDF', 'PNG', 'EPS', 'PS'}
if GS.check_tool(name, 'ImageMagick') is None:
disabled |= {'PNG'}
# Generate one output for each format
for fmt in ['PDF', 'SVG', 'PNG', 'EPS', 'PS']:
if fmt in disabled: