Skip to content
Snippets Groups Projects
Commit d704a099 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Merge branch 'bug_mutable_variables' into 'master'

BUG: prevent all_variables from being mutated

See merge request fsl/fslpy!93
parents a6f5dcdc d85ebb1d
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ class FileTree(object):
All tree variables including those from the parent tree
"""
if self.parent is None:
return self.variables
return dict(self.variables)
res = self.parent.all_variables
res.update(self.variables)
return res
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment