fix finder call
This commit is contained in:
parent
fb2cd9b411
commit
0a61d2746f
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue