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