diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2007-08-22 23:01:33 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2007-08-22 23:01:33 (GMT) |
commit | 2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175 (patch) | |
tree | c87d54545f01a1e080fd51c091d669871f8374dd /Lib/idlelib/PathBrowser.py | |
parent | 86d8b3497fb509d1c52f6f29f74854ec96987f23 (diff) | |
download | cpython-2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175.zip cpython-2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175.tar.gz cpython-2d7f6a079df2b4582d7ccc32a7a2a7287d0bf175.tar.bz2 |
Switch to absolute imports to support direct execution of modules. Many
IDLE modules have main() or test() functions which are essential for testing.
M idlelib/AutoCompleteWindow.py
M idlelib/UndoDelegator.py
M idlelib/Bindings.py
M idlelib/AutoComplete.py
M idlelib/configHandler.py
M idlelib/HyperParser.py
M idlelib/ColorDelegator.py
M idlelib/ObjectBrowser.py
M idlelib/ZoomHeight.py
M idlelib/PyShell.py
M idlelib/ParenMatch.py
M idlelib/Debugger.py
M idlelib/configDialog.py
M idlelib/StackViewer.py
M idlelib/ReplaceDialog.py
M idlelib/ScriptBinding.py
M idlelib/GrepDialog.py
M idlelib/EditorWindow.py
M idlelib/FormatParagraph.py
M idlelib/OutputWindow.py
M idlelib/aboutDialog.py
M idlelib/IdleHistory.py
M idlelib/PathBrowser.py
M idlelib/ClassBrowser.py
M idlelib/CallTips.py
M idlelib/FileList.py
M idlelib/idle.py
M idlelib/CodeContext.py
M idlelib/SearchDialog.py
M idlelib/RemoteObjectBrowser.py
M idlelib/RemoteDebugger.py
M idlelib/TreeWidget.py
M idlelib/run.py
M idlelib/Percolator.py
M idlelib/macosxSupport.py
Diffstat (limited to 'Lib/idlelib/PathBrowser.py')
-rw-r--r-- | Lib/idlelib/PathBrowser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/idlelib/PathBrowser.py b/Lib/idlelib/PathBrowser.py index 65efb48..d88a48e 100644 --- a/Lib/idlelib/PathBrowser.py +++ b/Lib/idlelib/PathBrowser.py @@ -2,8 +2,8 @@ import os import sys import imp -from .TreeWidget import TreeItem -from .ClassBrowser import ClassBrowser, ModuleBrowserTreeItem +from idlelib.TreeWidget import TreeItem +from idlelib.ClassBrowser import ClassBrowser, ModuleBrowserTreeItem class PathBrowser(ClassBrowser): @@ -86,7 +86,7 @@ class DirBrowserTreeItem(TreeItem): return sorted def main(): - from . import PyShell + from idlelib import PyShell PathBrowser(PyShell.flist) if sys.stdin is sys.__stdin__: mainloop() |