Kaydet (Commit) b78e3dd9 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Backport 1.45: Failed module import was dumping to the console instead

of creating a nice dialog window.
üst 07f3867a
......@@ -92,7 +92,10 @@ def _find_module(fullname, path=None):
if descr[2] == imp.PY_SOURCE:
break # find but not load the source file
module = imp.load_module(tgt, file, filename, descr)
path = module.__path__
try:
path = module.__path__
except AttributeError:
raise ImportError, 'No source for module ' + module.__name__
return file, filename, descr
class EditorWindow:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment