Commit 9dd52099 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 06b787bd
......@@ -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
......
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