Skip to content

Commit ac3065a

Browse files
committed
[TEMP] More debugging, where is my module?? (bis)
1 parent 7dbb906 commit ac3065a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/_pyrepl/_module_completer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,10 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]:
217217
"""Global module cache"""
218218
if not self._global_cache or self._curr_sys_path != sys.path:
219219
self._curr_sys_path = sys.path[:]
220-
# print('getting packages')
220+
print('getting packages') # TEMPORARY -- debugging tests on windows
221221
self._global_cache = list(pkgutil.iter_modules())
222+
mymods = [p for p in self._global_cache if p.name == "mymodule"] # TEMPORARY -- debugging tests on windows
223+
print("modules:", mymods, list(self.iter_submodules(mymods))) # TEMPORARY -- debugging tests on windows
222224
return self._global_cache
223225

224226

0 commit comments

Comments
 (0)