--- EditorWindow.py Tue May 21 20:00:19 2002 +++ tzot_EditorWindow.py Mon Aug 26 14:45:31 2002 @@ -342,9 +342,20 @@ return # XXX Ought to support package syntax # XXX Ought to insert current file's directory in front of path + msg= None try: (f, file, (suffix, mode, type)) = imp.find_module(name) except (NameError, ImportError), msg: + pass + if msg: + try: + _m= __import__(name) + (f, file, (suffix, mode, type)) = imp.find_module(name.split(".")[-1], _m.__path__) + del _m + msg= None + except (NameError, ImportError), msg: + pass + if msg: tkMessageBox.showerror("Import error", str(msg), parent=self.text) return if type != imp.PY_SOURCE: