mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Don't crash when sys.path contains an empty string.
This commit is contained in:
parent
87a42cd61b
commit
dd58416f39
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue