158 Public method to get a list of installed API files. |
161 Public method to get a list of installed API files. |
159 |
162 |
160 @return list of installed API files (list of strings) |
163 @return list of installed API files (list of strings) |
161 """ |
164 """ |
162 if self.__apis is not None: |
165 if self.__apis is not None: |
|
166 if Utilities.isWindowsPlatform(): |
|
167 from PyQt4 import pyqtconfig |
|
168 qsciPath = os.path.join(pyqtconfig._pkg_config["pyqt_mod_dir"], "qsci") |
|
169 if os.path.exists(qsciPath): |
|
170 # it's the installer |
|
171 apidir = os.path.join(qsciPath, "api", self.__lexer.lexer()) |
|
172 fnames = [] |
|
173 filist = QDir(apidir).entryInfoList(["*.api"], QDir.Files, |
|
174 QDir.IgnoreCase) |
|
175 for fi in filist: |
|
176 fnames.append(fi.absoluteFilePath()) |
|
177 return fnames |
|
178 |
163 return self.__apis.installedAPIFiles() |
179 return self.__apis.installedAPIFiles() |
164 else: |
180 else: |
165 return [] |
181 return [] |
166 |
182 |
167 def __defaultPreparedName(self): |
183 def __defaultPreparedName(self): |