165 Public method to get a list of installed API files. |
165 Public method to get a list of installed API files. |
166 |
166 |
167 @return list of installed API files (list of strings) |
167 @return list of installed API files (list of strings) |
168 """ |
168 """ |
169 if self.__apis is not None: |
169 if self.__apis is not None: |
170 if Utilities.isWindowsPlatform(): |
170 if Globals.isWindowsPlatform(): |
171 from PyQt4 import pyqtconfig |
171 qsciPath = os.path.join(Globals.getPyQt4ModulesDirectory(), "qsci") |
172 qsciPath = os.path.join(pyqtconfig._pkg_config["pyqt_mod_dir"], "qsci") |
|
173 if os.path.exists(qsciPath): |
172 if os.path.exists(qsciPath): |
174 # it's the installer |
173 # it's the installer |
175 apidir = os.path.join(qsciPath, "api", self.__lexer.lexer()) |
174 apidir = os.path.join(qsciPath, "api", self.__lexer.lexer()) |
176 fnames = [] |
175 fnames = [] |
177 filist = QDir(apidir).entryInfoList(["*.api"], QDir.Files, |
176 filist = QDir(apidir).entryInfoList(["*.api"], QDir.Files, |