From ac3065abbc9d19628a74729d9d8db39ae645422c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Simon?= Date: Thu, 2 Oct 2025 23:40:34 +0200 Subject: [PATCH] [TEMP] More debugging, where is my module?? (bis) --- Lib/_pyrepl/_module_completer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/_pyrepl/_module_completer.py b/Lib/_pyrepl/_module_completer.py index e177ecaa7e9..3cea986e782 100644 --- a/Lib/_pyrepl/_module_completer.py +++ b/Lib/_pyrepl/_module_completer.py @@ -217,8 +217,10 @@ def global_cache(self) -> list[pkgutil.ModuleInfo]: """Global module cache""" if not self._global_cache or 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()) + 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