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

EnsureDispatch: Check for the class attribute 'CLSID' instead of the instance attribute #2353

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

geppi
Copy link

@geppi geppi commented Aug 5, 2024

to decide if building makepy support is required.

The current code is checking for the CLSID atttribute of the instance created by win32com.client.Dispatch().
This attribute is never set on the instance and therefore the condition is always True and the code to build the makepy support is always executed.

The changed code does instead check for the CLSID class attribute which is set by the code that builds the makepy support and therefore avoids executing this code again if the makepy support already exists.

This pull request resolves #2354.

to decide if building makepy support is required.
@geppi geppi changed the title Check for the class attribute 'CLSID' instead of the instance attribute EnsureDispatch: Check for the class attribute 'CLSID' instead of the instance attribute Aug 5, 2024
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.

BUG: EnsureDispatch always executes the code to build makepy support even if it already exists.
1 participant