Skip to content

merge origin#2

Open
yagui wants to merge 20 commits into
sentrisense:masterfrom
openscopeproject:master
Open

merge origin#2
yagui wants to merge 20 commits into
sentrisense:masterfrom
openscopeproject:master

Conversation

@yagui

@yagui yagui commented Jun 24, 2026

Copy link
Copy Markdown

No description provided.

qu1ck and others added 20 commits September 27, 2025 17:17
- From command line --mark-when-checked
- In the config: mark_when_checked
- JS: config.mark_when_checked
- GUI: None
Add get_wx() in compat.py to gate wx imports behind
INTERACTIVE_HTML_BOM_NO_DISPLAY environment variable.
Old algorithm that used zone min thickness in addition to polygon
was retired in 7.0
It may cause issues on windows with network paths

Fixes #516
Also a bug where default variant exclude from bom was
overriding the flag value from selected variant

Fixes #544
* Add ini file parsing

* Fix ini option types and add missing options

- highlight_pin1 is a string choice, not a bool; migrate legacy 0/1 values
  same as load_from_ini
- blacklist_empty_val is a bool in the ini file
- board_rotation is stored as int in 5-degree units; convert the CLI
  fallback value the same way set_from_args does
- read offset_back_rotation and mark_when_checked, which are written to
  the ini file but were not read back
- exit with ERROR_FILE_NOT_FOUND instead of 0 when no ini file exists

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Fix ini/CLI precedence so command line options override ini

Explicitly-provided command line options now take precedence over values
loaded from the ini file.

* Reduce duplicated ini parsing logic in set_from_args_with_ini

Replace the repeated per-option ini lookups with a single declarative table
of (section, key, attribute, kind, cli_dest) tuples processed by a common
loop. Behaviour is unchanged; special cases (highlight_pin1 migration and
show_fields/group_fields with --extra-fields) are kept explicit.

* Refactor argument parsing to use ini file as argparse defaults

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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.

6 participants