summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-11 23:21:23 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-11 23:21:23 (GMT)
commitdd58416f3937431c2106d4916658ad99febb3250 (patch)
treee35fb758c953414c6d9e9831bc4f723603fb4981 /Tools
parent87a42cd61b9fddb558363392985e7decfa9abf11 (diff)
downloadcpython-dd58416f3937431c2106d4916658ad99febb3250.zip
cpython-dd58416f3937431c2106d4916658ad99febb3250.tar.gz
cpython-dd58416f3937431c2106d4916658ad99febb3250.tar.bz2
Don't crash when sys.path contains an empty string.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/PathBrowser.py2
1 files changed, 1 insertions, 1 deletions
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)