Give completions after user has typed 'import ...' or 'from ...
(self,event)
| 245 | # completers |
| 246 | |
| 247 | def module_completer(self,event): |
| 248 | """Give completions after user has typed 'import ...' or 'from ...'""" |
| 249 | |
| 250 | # This works in all versions of python. While 2.5 has |
| 251 | # pkgutil.walk_packages(), that particular routine is fairly dangerous, |
| 252 | # since it imports *EVERYTHING* on sys.path. That is: a) very slow b) full |
| 253 | # of possibly problematic side effects. |
| 254 | # This search the folders in the sys.path for available modules. |
| 255 | |
| 256 | return module_completion(event.line) |
| 257 | |
| 258 | # FIXME: there's a lot of logic common to the run, cd and builtin file |
| 259 | # completers, that is currently reimplemented in each. |
nothing calls this directly
no test coverage detected