Skip to content

Commit ebd5b0b

Browse files
committedJul 25, 2016
[processing] use default models folder when adding model from file (fix #15335)
(cherry picked from commit b167c09)
1 parent b219f73 commit ebd5b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/modeler/AddModelFromFileAction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ def execute(self):
6969
self.tr('Error reading model', 'AddModelFromFileAction'),
7070
self.tr('Cannot read file', 'AddModelFromFileAction'))
7171
return
72-
destFilename = os.path.join(ModelerUtils.modelsFolder(), os.path.basename(filename))
72+
destFilename = os.path.join(ModelerUtils.defaultModelsFolder(), os.path.basename(filename))
7373
shutil.copyfile(filename, destFilename)
7474
self.toolbox.updateProvider('model')

0 commit comments

Comments
 (0)