Skip to content

Update hook import mechanism - #769

Merged
z411 merged 1 commit into
masterfrom
bugfix/load-hooks
Mar 31, 2025
Merged

z411 merged 1 commit into
masterfrom
bugfix/load-hooks

Conversation

@FichteFoll

Copy link
Copy Markdown
Contributor

The non-deprecated way is to use the finder returned by pkgutil.iter_modules to "find" a module spec, then create a module from the spec and finally execute the module.

This fixes hooks in Python 3.13 and thus fixes #736.

Supersedes and closes #759.
Supersedes and closes #746.

The non-deprecated way is to use the finder returned by
`pkgutil.iter_modules` to "find" a module spec, then create a module
from the spec and finally execute the module.

This fixes hooks in Python 3.13 and thus fixes #736.
@z411
z411 merged commit 056c40d into master Mar 31, 2025
@FichteFoll
FichteFoll deleted the bugfix/load-hooks branch April 1, 2025 18:11
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.

'FileFinder' object has no attribute 'find_module'

2 participants