163 Public method to get a list of installed API files. |
163 Public method to get a list of installed API files. |
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 Globals.isWindowsPlatform(): |
169 qsciPath = os.path.join(Utilities.getPythonModulesDirectory(), |
169 qsciPath = os.path.join(Globals.getPyQt4ModulesDirectory(), "qsci") |
170 "PyQt4", "qsci") |
|
171 if os.path.exists(qsciPath): |
170 if os.path.exists(qsciPath): |
172 # it's the installer |
171 # it's the installer |
173 apidir = os.path.join(qsciPath, "api", self.__lexer.lexer()) |
172 apidir = os.path.join(qsciPath, "api", self.__lexer.lexer()) |
174 fnames = [] |
173 fnames = [] |
175 filist = QDir(apidir).entryInfoList(["*.api"], QDir.Files, |
174 filist = QDir(apidir).entryInfoList(["*.api"], QDir.Files, |