37 Module function to return the API files made available by this plugin. |
37 Module function to return the API files made available by this plugin. |
38 |
38 |
39 @param language language to get APIs for (string) |
39 @param language language to get APIs for (string) |
40 @return list of API filenames (list of string) |
40 @return list of API filenames (list of string) |
41 """ |
41 """ |
42 if language in ["Python3", "Python"]: |
42 if language: |
43 apisDir = os.path.join(os.path.dirname(__file__), "APIs", "Python") |
43 apisDir = os.path.join(os.path.dirname(__file__), "APIs", language) |
44 apis = glob.glob(os.path.join(apisDir, "*.api")) |
44 return glob.glob(os.path.join(apisDir, "*.api")) |
45 |
|
46 apisDir = os.path.join(os.path.dirname(__file__), "APIs", "Python3") |
|
47 apis.extend(glob.glob(os.path.join(apisDir, "*.api"))) |
|
48 return apis |
|
49 else: |
45 else: |
50 return [] |
46 return [] |
51 |
47 |
52 |
48 |
53 class PluginApis(QObject): |
49 class PluginApis(QObject): |