Provide full arguments to __import__ so it works in packagized IDLE.

This commit is contained in:
Guido van Rossum 1999-04-23 14:01:25 +00:00
parent 06b787bdd1
commit 9dd52099fa
1 changed files with 1 additions and 1 deletions

View File

@ -484,7 +484,7 @@ class EditorWindow:
return extend.standard
def load_extension(self, name):
mod = __import__(name)
mod = __import__(name, globals(), locals(), [])
cls = getattr(mod, name)
ins = cls(self)
self.extensions[name] = ins