diff options
author | Guido van Rossum <guido@python.org> | 1999-04-23 14:01:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-04-23 14:01:25 (GMT) |
commit | 9dd52099fa5c337407fcc29f4ae6805aef39b973 (patch) | |
tree | ce79128577876fd7b740469435183f8f85b859a7 /Tools/idle/EditorWindow.py | |
parent | 06b787bdd1087d62adb9e9b9684a3e032a1f03b7 (diff) | |
download | cpython-9dd52099fa5c337407fcc29f4ae6805aef39b973.zip cpython-9dd52099fa5c337407fcc29f4ae6805aef39b973.tar.gz cpython-9dd52099fa5c337407fcc29f4ae6805aef39b973.tar.bz2 |
Provide full arguments to __import__ so it works in packagized IDLE.
Diffstat (limited to 'Tools/idle/EditorWindow.py')
-rw-r--r-- | Tools/idle/EditorWindow.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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 |