`--list`: problems with layers and fields specific for the project.

-  Fixes INTI-CMNB/kibot_variants_arduprog#4
This commit is contained in:
Salvador E. Tropea 2021-11-15 11:34:57 -03:00
parent 088027c174
commit 9e65e0712e
2 changed files with 11 additions and 5 deletions

View File

@ -35,6 +35,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
Can be disabled to use absolute coordinates. (#87)
- Board View: flipped output. (#89)
- Board View: problems with netnames using spaces. (#90)
- Schematic load: problems with fields containing double quotes. (#98)
- `--list`: problems with layers and fields specific for the project.
(INTI-CMNB/kibot_variants_arduprog#4)
## [0.11.0] - 2021-04-25

View File

@ -90,7 +90,9 @@ def list_pre_and_outs(logger, outputs):
if len(outputs):
logger.info('Outputs:')
for o in outputs:
config_output(o, dry=True)
# Note: we can't do a `dry` config because some layer and field names can be validated only if we
# load the schematic and the PCB.
config_output(o, dry=False)
logger.info('- '+str(o))
@ -341,15 +343,16 @@ def main():
with open(plot_config) as cf_file:
outputs = cr.read(cf_file)
# Determine the SCH file
GS.set_sch(solve_schematic(args.schematic, args.board_file, plot_config))
# Determine the PCB file
GS.set_pcb(solve_board_file(GS.sch_file, args.board_file))
# Is just list the available targets?
if args.list:
list_pre_and_outs(logger, outputs)
sys.exit(0)
# Determine the SCH file
GS.set_sch(solve_schematic(args.schematic, args.board_file, plot_config))
# Determine the PCB file
GS.set_pcb(solve_board_file(GS.sch_file, args.board_file))
if args.makefile:
# Only create a makefile
generate_makefile(args.makefile, plot_config, outputs)