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

This commit is contained in:
Guido van Rossum 1999-03-11 23:21:23 +00:00
parent 87a42cd61b
commit dd58416f39
1 changed files with 1 additions and 1 deletions

View File

@ -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)