diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py index 2c1977566c1..2ae69cfa8a8 100644 --- a/Tools/idle/EditorWindow.py +++ b/Tools/idle/EditorWindow.py @@ -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