Skip to content

Commit

Permalink
also versioning cookbook url
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed May 29, 2018
1 parent 8f5bde4 commit 3edc07b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/console/console_sci.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,8 @@ def runCommand(self, cmd):
elif cmd == '_api':
webbrowser.open("https://qgis.org/api/{}".format(version))
elif cmd == '_cookbook':
webbrowser.open("https://qgis.org/pyqgis-cookbook/")
webbrowser.open("https://docs.qgis.org/{}/en/docs/pyqgis_developer_cookbook/".format(
'testing' if version == 'master' else version))
more = False
else:
self.buffer.append(cmd)
Expand Down

0 comments on commit 3edc07b

Please sign in to comment.