Skip to content

Commit aebf27e

Browse files
committed
[pyqgis-console] fix autocompletion in editor after 6e19748
1 parent a996365 commit aebf27e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/console/console_editor.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ def setLexers(self):
240240
chekBoxAPI = self.settings.value("pythonConsole/preloadAPI", True, type=bool)
241241
chekBoxPreparedAPI = self.settings.value("pythonConsole/usePreparedAPIFile", False, type=bool)
242242
if chekBoxAPI:
243-
self.api.loadPrepared(QgsApplication.pkgDataPath() + "/python/qsci_apis/pyqgis_master.pap")
243+
pap = os.path.join(QgsApplication.pkgDataPath(), "python", "qsci_apis", "pyqgis.pap")
244+
self.api.loadPrepared(pap)
244245
elif chekBoxPreparedAPI:
245246
self.api.loadPrepared(self.settings.value("pythonConsole/preparedAPIFile"))
246247
else:

0 commit comments

Comments
 (0)