fix finder call

This commit is contained in:
Matthias Mair 2026-06-23 07:31:40 +02:00
parent fb2cd9b411
commit 0a61d2746f
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ def get_modules(pkg, path=None):
if sys.version_info < (3, 12):
module = finder.find_module(name).load_module(name)
else:
spec = finder.find_spec(name)
spec = finder.find_spec(name, path)
module = module_from_spec(spec)
sys.modules[name] = module
spec.loader.exec_module(module)