diff -r c8ea815f673d -r f69d7f9ab8e4 PluginApis.py --- a/PluginApis.py Wed Sep 21 17:01:33 2022 +0200 +++ b/PluginApis.py Tue Sep 27 15:56:36 2022 +0200 @@ -17,7 +17,7 @@ author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "10.2.0" +version = "10.3.0" className = "PluginApis" packageName = "APIs" shortDescription = "API files for auto-completion and call tips." @@ -39,13 +39,9 @@ @param language language to get APIs for (string) @return list of API filenames (list of string) """ - if language in ["Python3", "Python"]: - apisDir = os.path.join(os.path.dirname(__file__), "APIs", "Python") - apis = glob.glob(os.path.join(apisDir, "*.api")) - - apisDir = os.path.join(os.path.dirname(__file__), "APIs", "Python3") - apis.extend(glob.glob(os.path.join(apisDir, "*.api"))) - return apis + if language: + apisDir = os.path.join(os.path.dirname(__file__), "APIs", language) + return glob.glob(os.path.join(apisDir, "*.api")) else: return []