Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[pyqgis-console] fix autocompletion in editor after 6e19748
  • 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
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.