Commit dd58416f authored by Guido van Rossum's avatar Guido van Rossum

Don't crash when sys.path contains an empty string.

parent 87a42cd6
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment