eric6/Plugins/WizardPlugins/EricPluginWizard/Templates.py

branch
without_py2_and_pyqt4
changeset 7199
c71bd6f21748
parent 6942
2602857055c5
child 7229
53054eb5b15a
equal deleted inserted replaced
7198:684261ef2165 7199:c71bd6f21748
36 longDescription = ( 36 longDescription = (
37 """{longDescription}""" 37 """{longDescription}"""
38 ) 38 )
39 needsRestart = {needsRestart} 39 needsRestart = {needsRestart}
40 pyqtApi = 2 40 pyqtApi = 2
41 python2Compatible = {python2Compatible}
42 # End-Of-Header 41 # End-Of-Header
43 42
44 error = "" 43 error = ""
45 44
46 45
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

eric ide

mercurial