commit | 9dd52099fa5c337407fcc29f4ae6805aef39b973 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Apr 23 14:01:25 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Apr 23 14:01:25 1999 +0000 |
tree | ce79128577876fd7b740469435183f8f85b859a7 | |
parent | 06b787bdd1087d62adb9e9b9684a3e032a1f03b7 [diff] [blame] |
Provide full arguments to __import__ so it works in packagized IDLE.
diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py index 2c19775..2ae69cf 100644 --- a/Tools/idle/EditorWindow.py +++ b/Tools/idle/EditorWindow.py
@@ -484,7 +484,7 @@ 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