mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[TEMP] More debugging, where is my module?? (bis)
This commit is contained in:
parent
7dbb906e6e
commit
ac3065abbc
1 changed files with 3 additions and 1 deletions
|
|
@ -217,8 +217,10 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]:
|
||||||
"""Global module cache"""
|
"""Global module cache"""
|
||||||
if not self._global_cache or self._curr_sys_path != sys.path:
|
if not self._global_cache or self._curr_sys_path != sys.path:
|
||||||
self._curr_sys_path = sys.path[:]
|
self._curr_sys_path = sys.path[:]
|
||||||
# print('getting packages')
|
print('getting packages') # TEMPORARY -- debugging tests on windows
|
||||||
self._global_cache = list(pkgutil.iter_modules())
|
self._global_cache = list(pkgutil.iter_modules())
|
||||||
|
mymods = [p for p in self._global_cache if p.name == "mymodule"] # TEMPORARY -- debugging tests on windows
|
||||||
|
print("modules:", mymods, list(self.iter_submodules(mymods))) # TEMPORARY -- debugging tests on windows
|
||||||
return self._global_cache
|
return self._global_cache
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue