Skip to content

Commit 950a191

Browse files
committed
[processing] remove square brackets from output names when no path and no extensions are provided
1 parent 1132eb9 commit 950a191

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/plugins/processing/gui/OutputSelectionPanel.py

+2
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ def getValue(self):
237237
result = exp.evaluate(context)
238238
if not exp.hasEvalError():
239239
fileName = result
240+
if fileName.startswith("[") and fileName.endswith("]"):
241+
fileName = fileName[1:-1]
240242
if fileName.strip() in ['', self.SAVE_TO_TEMP_FILE]:
241243
value = None
242244
elif fileName.startswith('memory:'):

0 commit comments

Comments
 (0)