Skip to content

Commit

Permalink
[processing] use default models folder when adding model from file (fix
Browse files Browse the repository at this point in the history
#15335)

(cherry picked from commit b167c09)
  • Loading branch information
alexbruy committed Jul 25, 2016
1 parent b219f73 commit ebd5b0b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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.modelsFolder(), os.path.basename(filename))
destFilename = os.path.join(ModelerUtils.defaultModelsFolder(), os.path.basename(filename))
shutil.copyfile(filename, destFilename)
self.toolbox.updateProvider('model')

0 comments on commit ebd5b0b

Please sign in to comment.