From a523c3ceb946f2df240f3c0ebcbf0015f75be2b2 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 31 Jul 2020 12:00:49 -0300 Subject: [PATCH] Added debug information about the SCH, PCB and Config used. --- kiplot/__main__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kiplot/__main__.py b/kiplot/__main__.py index 46180420..20aa47bc 100644 --- a/kiplot/__main__.py +++ b/kiplot/__main__.py @@ -104,6 +104,11 @@ def solve_schematic(a_schematic, a_board_file): if schematic and not os.path.isfile(schematic): logger.error("Schematic file not found: "+schematic) sys.exit(NO_SCH_FILE) + if schematic: + schematic = os.path.abspath(schematic) + logger.debug('Using schematic: `{}`'.format(schematic)) + else: + logger.debug('No schematic file found') return schematic @@ -124,6 +129,7 @@ def solve_config(a_plot_config): if not os.path.isfile(plot_config): logger.error("Plot config file not found: "+plot_config) sys.exit(EXIT_BAD_ARGS) + logger.debug('Using configuration file: `{}`'.format(plot_config)) return plot_config @@ -149,6 +155,10 @@ def solve_board_file(schematic, a_board_file): logger.warning('More than one PCB file found in current directory.\n' ' Using '+board_file+' if you want to use another use -b option.') check_board_file(board_file) + if board_file: + logger.debug('Using PCB: `{}`'.format(board_file)) + else: + logger.debug('No PCB file found') return board_file