Skip to content

Replace client._code_cache._get_module_filename with typeinfo.GetModuleFileName.#811

Merged
junkmd merged 7 commits intoenthought:mainfrom
junkmd:remove_get_module_filename
Feb 20, 2025
Merged

Replace client._code_cache._get_module_filename with typeinfo.GetModuleFileName.#811
junkmd merged 7 commits intoenthought:mainfrom
junkmd:remove_get_module_filename

Conversation

@junkmd
Copy link
Copy Markdown
Collaborator

@junkmd junkmd commented Feb 19, 2025

I previously defined GetModuleFileName in typeinfo, so there’s no longer a need to import the private function _get_module_filename from the private module client._code_cache.

I also identified the conditions under which GetModuleFileName should raise an error, so I added a branch to execute raise WinError.

@junkmd junkmd added this to the 1.4.11 milestone Feb 19, 2025
@junkmd junkmd changed the title Replace typeinfo.GetModuleFileName with client._code_cache._get_module_filename. Replace client._code_cache._get_module_filename with typeinfo.GetModuleFileName. Feb 19, 2025
junkmd added a commit to junkmd/pywinauto that referenced this pull request Feb 19, 2025
@junkmd junkmd merged commit 6dd09b9 into enthought:main Feb 20, 2025
50 checks passed
@junkmd junkmd deleted the remove_get_module_filename branch February 20, 2025 00:39
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