248 @param language language to get APIs for |
247 @param language language to get APIs for |
249 @type str |
248 @type str |
250 @return list of API filenames |
249 @return list of API filenames |
251 @rtype list of str |
250 @rtype list of str |
252 """ |
251 """ |
253 if language in ["Python3", "Python2", "Python"]: |
252 if language in ["Python3", "Python"]: |
254 apisDir = \\ |
253 apisDir = \\ |
255 os.path.join(os.path.dirname(__file__), "APIs", "Python") |
254 os.path.join(os.path.dirname(__file__), "APIs", "Python") |
256 apis = glob.glob(os.path.join(apisDir, '*.api')) |
255 apis = glob.glob(os.path.join(apisDir, '*.api')) |
257 if language == "Python3": |
256 apisDir = \\ |
258 apisDir = \\ |
257 os.path.join(os.path.dirname(__file__), "APIs", "Python3") |
259 os.path.join(os.path.dirname(__file__), "APIs", "Python3") |
258 apis.extend(glob.glob(os.path.join(apisDir, '*.api'))) |
260 apis.extend(glob.glob(os.path.join(apisDir, '*.api'))) |
|
261 else: |
|
262 apisDir = \\ |
|
263 os.path.join(os.path.dirname(__file__), "APIs", "Python2") |
|
264 apis.extend(glob.glob(os.path.join(apisDir, '*.api'))) |
|
265 else: |
259 else: |
266 apis = [] |
260 apis = [] |
267 return apis |
261 return apis |
268 |
262 |
269 |
263 |