forked from SchrodingersGat/KiBoM
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for various configuration details issues.
- 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.
- Loading branch information
Showing
2 changed files
with
46 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters