src/eric7/QScintilla/APIsManager.py

branch
eric7
changeset 9598
71dd030d728a
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
--- 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)

eric ide

mercurial