Show More
@@ -110,6 +110,11 b' def get_root_modules():' | |||
|
110 | 110 | ip.db['rootmodules_cache'] maps sys.path entries to list of modules. |
|
111 | 111 | """ |
|
112 | 112 | ip = get_ipython() |
|
113 | if ip is None: | |
|
114 | # No global shell instance to store cached list of modules. | |
|
115 | # Don't try to scan for modules every time. | |
|
116 | return list(sys.builtin_module_names) | |
|
117 | ||
|
113 | 118 | rootmodules_cache = ip.db.get('rootmodules_cache', {}) |
|
114 | 119 | rootmodules = list(sys.builtin_module_names) |
|
115 | 120 | start_time = time() |
General Comments 0
You need to be logged in to leave comments.
Login now