QScintilla/APIsManager.py

branch
5_0_x
changeset 291
aaf3f18c5797
parent 97
c4086afea02b
child 362
e09ff98eb4d1
equal deleted inserted replaced
285:7476703ac56d 291:aaf3f18c5797
158 Public method to get a list of installed API files. 158 Public method to get a list of installed API files.
159 159
160 @return list of installed API files (list of strings) 160 @return list of installed API files (list of strings)
161 """ 161 """
162 if self.__apis is not None: 162 if self.__apis is not None:
163 if Utilities.isWindowsPlatform():
164 from PyQt4 import pyqtconfig
165 qsciPath = os.path.join(pyqtconfig._pkg_config["pyqt_mod_dir"], "qsci")
166 if os.path.exists(qsciPath):
167 # it's the installer
168 apidir = os.path.join(qsciPath, "api", self.__lexer.lexer())
169 fnames = []
170 filist = QDir(apidir).entryInfoList(["*.api"], QDir.Files,
171 QDir.IgnoreCase)
172 for fi in filist:
173 fnames.append(fi.absoluteFilePath())
174 return fnames
175
163 return self.__apis.installedAPIFiles() 176 return self.__apis.installedAPIFiles()
164 else: 177 else:
165 return [] 178 return []
166 179
167 def __defaultPreparedName(self): 180 def __defaultPreparedName(self):

eric ide

mercurial