Skip to content

fix: allow explicit SDK discovery outside Windows - #9

Open
sit-d wants to merge 1 commit into
bitRAKE:win32from
sit-d:curation/allow-explicit-sdk-off-windows-20260713
Open

fix: allow explicit SDK discovery outside Windows#9
sit-d wants to merge 1 commit into
bitRAKE:win32from
sit-d:curation/allow-explicit-sdk-off-windows-20260713

Conversation

@sit-d

@sit-d sit-d commented Jul 13, 2026

Copy link
Copy Markdown

Summary

  • Load the Windows registry module only when registry discovery is needed on Windows.
  • Keep WINSDK_ROOT discovery and the Python entrypoint help available on other platforms.
  • Preserve the existing registry fallback for ordinary Windows use.

Verification

  • python3 -m py_compile tools/win32_scraper.py tools/psdk_common.py tools/psdk_function.py tools/psdk_interface.py tools/psdk_struct.py
  • python3 tools/win32_scraper.py --help
  • python3 tools/psdk_function.py --help
  • python3 tools/psdk_interface.py --help
  • python3 tools/psdk_struct.py --help
  • A synthetic WINSDK_ROOT tree with two SDK versions selected the newest version.
  • git diff --check HEAD~1..HEAD

Notes / Limitations

  • Windows registry discovery was not exercised; that branch retains the same keys and lookup order.

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.

1 participant