Skip to content
Permalink
Browse files

[processing] fix handling of scriipts/models folders in Get scripts d…

…ialog (follow up d16f04b)
  • Loading branch information
alexbruy committed May 27, 2016
1 parent 92aed6e commit 70c5ab6a05786711c9d40ffd62392358464d4b4e
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/gui/GetScriptsAndModels.py
@@ -128,15 +128,15 @@ def __init__(self, resourceType):

self.resourceType = resourceType
if self.resourceType == self.MODELS:
self.folder = ModelerUtils.modelsFolder()
self.folder = ModelerUtils.defaultModelsFolder()
self.urlBase = 'https://raw.githubusercontent.com/qgis/QGIS-Processing/master/models/'
self.icon = QIcon(os.path.join(pluginPath, 'images', 'model.png'))
elif self.resourceType == self.SCRIPTS:
self.folder = ScriptUtils.scriptsFolder()
self.folder = ScriptUtils.defaultScriptsFolder()
self.urlBase = 'https://raw.githubusercontent.com/qgis/QGIS-Processing/master/scripts/'
self.icon = QIcon(os.path.join(pluginPath, 'images', 'script.png'))
else:
self.folder = RUtils.RScriptsFolder()
self.folder = RUtils.defaultRScriptsFolder()
self.urlBase = 'https://raw.githubusercontent.com/qgis/QGIS-Processing/master/rscripts/'
self.icon = QIcon(os.path.join(pluginPath, 'images', 'r.svg'))

0 comments on commit 70c5ab6

Please sign in to comment.
You can’t perform that action at this time.