Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tolerate no output_file_name and/or variant_file_name_format #121

Merged

Conversation

set-soft
Copy link
Contributor

Added fallbacks to the current default values, avoiding an exception.
Should close issue #70

Added fallbacks to the current default values, avoiding an exception.
Should close issue SchrodingersGat#70
@SchrodingersGat SchrodingersGat merged commit ba9c477 into SchrodingersGat:master Jul 19, 2020
set-soft added a commit to INTI-CMNB/KiBoM that referenced this pull request Jul 20, 2020
- Added warning if boolean options aren't 0,1,yes,no,true,false
- `as_link` and `digikey_link`: avoid writing "False" boolean, which
  then is loaded as "False" string. Now using '' which is equivalent
  to False. (bool('') -> False). Introduced by me on
  SchrodingersGat#112 and SchrodingersGat#114.
- Put all SECTION_GENERAL options inside the already existing if.
- `backup` also made to default to '' instead of False for coherence.
- `hide_headers` and `hide_pcb_info` now support the same options as
  other booleans. Also write them as '0', not 'False' for coherence
  with all the other booleans.
- `board_variant` write as a string, not an array (bizarre
  ['default']" in created *bom.ini*)
- Add a checkStr method, to make it similar to checkInt and
  checkOption. Making the general options much more compact in the
  code.
- `output_file_name` and `variant_file_name_format` now use a more
  general fallback mechanism (fallback option is documented only for
  Python 3). Better than what I did in SchrodingersGat#121.
set-soft added a commit to INTI-CMNB/KiBoM that referenced this pull request Jul 30, 2020
@set-soft set-soft mentioned this pull request Jul 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants