Skip to content
Permalink
Browse files

[processing] use default models folder when adding model from file (fix

#15335)

(cherry picked from commit b167c09)
  • Loading branch information
alexbruy committed Jul 25, 2016
1 parent 9900305 commit 88d83e36cc0cd7ef0f9aa21fd85a7392dfd89ac6
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/modeler/AddModelFromFileAction.py
@@ -71,6 +71,6 @@ def execute(self):
self.tr('Error reading model', 'AddModelFromFileAction'),
self.tr('Cannot read file', 'AddModelFromFileAction'))
return
destFilename = os.path.join(ModelerUtils.modelsFolder(), os.path.basename(filename))
destFilename = os.path.join(ModelerUtils.defaultModelsFolder(), os.path.basename(filename))
shutil.copyfile(filename, destFilename)
algList.reloadProvider('model')

0 comments on commit 88d83e3

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