mirror of https://github.com/python/cpython
Don't crash when sys.path contains an empty string.
This commit is contained in:
parent
87a42cd61b
commit
dd58416f39
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue