Skip to content

Commit 982960b

Browse files
committedSep 8, 2013
[pyqgis-console] fix autocompletion in editor after 6e19748
1 parent d12c107 commit 982960b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎python/console/console_editor.py

Lines changed: 2 additions & 1 deletion
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)
Please sign in to comment.