From dd58416f3937431c2106d4916658ad99febb3250 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 11 Mar 1999 23:21:23 +0000 Subject: Don't crash when sys.path contains an empty string. --- Tools/idle/PathBrowser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/idle/PathBrowser.py b/Tools/idle/PathBrowser.py index d8f5b55..b24977f 100644 --- a/Tools/idle/PathBrowser.py +++ b/Tools/idle/PathBrowser.py @@ -49,7 +49,7 @@ class PathBrowser(MultiScrolledLists): return self.listmethods() def listmodules(self): - dir = self.path[0] + dir = self.path[0] or os.curdir modules = {} suffixes = imp.get_suffixes() allnames = os.listdir(dir) -- cgit v0.12