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

Inject sys.frozen and sys.frozendllhandle as constructor arguments instead of referencing them directly in RegistryEntries. #736

Merged
merged 11 commits into from
Jan 8, 2025

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Jan 7, 2025

sys.frozen and sys.frozendllhandle are constants in sys that exist only when running under embedding tools. These constants are not present in a standard Python environment.

Using hasattr or getattr repeatedly to retrieve these constants is redundant.
To address this, they are now accessed only once within the Registrar constructor, and their values are injected into RegistryEntries.

@junkmd junkmd added this to the 1.4.10 milestone Jan 7, 2025
junkmd added a commit to junkmd/pywinauto that referenced this pull request Jan 7, 2025
@junkmd junkmd merged commit 41e2eac into enthought:main Jan 8, 2025
50 checks passed
@junkmd junkmd deleted the inject_sys_frozen_into_reg_entries branch January 8, 2025 01:17
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