Skip to content
Permalink
Browse files

Revert "[processing] use default models folder when adding model from…

… file (fix #15335)"

This reverts commit ebd5b0b cherry-picked by mistake
  • Loading branch information
alexbruy committed Jul 25, 2016
1 parent ebd5b0b commit 2e4c3280dfcd0957ab0e24eabad346b93f319dc0
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/modeler/AddModelFromFileAction.py
@@ -69,6 +69,6 @@ def execute(self):
self.tr('Error reading model', 'AddModelFromFileAction'),
self.tr('Cannot read file', 'AddModelFromFileAction'))
return
destFilename = os.path.join(ModelerUtils.defaultModelsFolder(), os.path.basename(filename))
destFilename = os.path.join(ModelerUtils.modelsFolder(), os.path.basename(filename))
shutil.copyfile(filename, destFilename)
self.toolbox.updateProvider('model')

0 comments on commit 2e4c328

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