Repository navigation
Make com interfaces ide friendly #12201
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
2cf976e
Make UIAutomationClient work for tools and runtime
feerrenrut 83acfb1
Fix formatting of sconscript
feerrenrut 4c1df16
Auto fix generated files for IDE / tools.
feerrenrut b5170b0
Explicitly gen Accessibility comInterface
feerrenrut 9ec6e5f
Generate UIAutomation client
feerrenrut 1c8ade5
add explanation for comInterfaces package
feerrenrut 4e2ddbe
fix lint warning
feerrenrut e2e528b
Don't generate UIAutomationClient
feerrenrut 56376a2
Merge remote-tracking branch 'origin/master' into makeComInterfacesID…
feerrenrut cbf6478
Update comInterfaces readme
feerrenrut b7ea44d
Merge remote-tracking branch 'origin/master' into makeComInterfacesID…
feerrenrut 6c17522
Update changes file for PR #12201
feerrenrut db8ee5f
Merge remote-tracking branch 'origin/master' into makeComInterfacesID…
feerrenrut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| from comtypes.gen import _944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0 | ||
| try: | ||
| from comtypes.gen import _944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0 | ||
| except ModuleNotFoundError: | ||
| import _944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0 | ||
| from _944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0 import * | ||
| globals().update(_944DE083_8FB8_45CF_BCB7_C477ACB2F897_0_1_0.__dict__) | ||
| __name__ = 'comtypes.gen.UIAutomationClient' |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| The comInterfaces package is generated via SCons. | ||
| The logic for this is in `comInterfaces_sconscript`, which uses `comtypes.gen` to read `*.tlb` | ||
| files or via interface IDs. | ||
|
|
||
| The interface files have an ID named file (a GUID, followed by a version number) as well as a | ||
| "friendly name" file. | ||
|
|
||
| The "friendly name" file generated by comtypes is not consumed easily by tools and IDEs, | ||
| runtime logic is used to expose symbols. | ||
| To remedy this, the file is then processed by `comInterfaces_sconscript` to extract the module | ||
| name and replace the import statement with a more elaborate approach which includes a fallback | ||
| for the purposes of IDEs and tools. | ||
|
|
||
| Only UIAutomation.py is not generated, UIA has historically been updated regularly and the version on | ||
| Appveyor build servers could not be guaranteed. | ||
|
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.