--- a/src/eric7/QScintilla/APIsManager.py Thu Dec 08 18:09:33 2022 +0100 +++ b/src/eric7/QScintilla/APIsManager.py Thu Dec 08 20:06:32 2022 +0100 @@ -202,15 +202,12 @@ if not os.path.exists(apiDir): # use lower case language apiDir = os.path.join(apisDir, self.__lexer.language().lower()) - fnames = { - os.path.join(apiDir, f) for f in glob.glob("*.api", root_dir=apiDir) - } + fnames = {f for f in glob.glob(os.path.join(apiDir, "*.api"))} # combine with the QScintilla standard behavior fnames |= { - os.path.join(apiDir, f) + f for f in glob.glob( - "*.api", - root_dir=os.path.join(apisDir, self.__lexer.lexer()), + os.path.join(apisDir, self.__lexer.lexer(), "*.api") ) } return sorted(fnames)