Skip to content

Commit

Permalink
[pyqgis-console] fix autocompletion in editor after 6e19748
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Sep 8, 2013
1 parent d12c107 commit 982960b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/console/console_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def setLexers(self):
chekBoxAPI = self.settings.value("pythonConsole/preloadAPI", True, type=bool)
chekBoxPreparedAPI = self.settings.value("pythonConsole/usePreparedAPIFile", False, type=bool)
if chekBoxAPI:
self.api.loadPrepared(QgsApplication.pkgDataPath() + "/python/qsci_apis/pyqgis_master.pap")
pap = os.path.join(QgsApplication.pkgDataPath(), "python", "qsci_apis", "pyqgis.pap")
self.api.loadPrepared(pap)
elif chekBoxPreparedAPI:
self.api.loadPrepared(self.settings.value("pythonConsole/preparedAPIFile"))
else:
Expand Down

0 comments on commit 982960b

Please sign in to comment.