Skip to content

Commit 7f2d8ea

Browse files
committed
set correct locals priority
1 parent 708d933 commit 7f2d8ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

volatility3/cli/volshell/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def run(
9595

9696
sys.ps1 = f"({self.current_layer}) >>> "
9797
# Dict self._construct_locals_dict() will have priority on keys
98-
combined_locals = self._construct_locals_dict().copy()
99-
combined_locals.update(additional_locals)
98+
combined_locals = additional_locals.copy()
99+
combined_locals.update(self._construct_locals_dict())
100100
self.__console = code.InteractiveConsole(locals=combined_locals)
101101
# Since we have to do work to add the option only once for all different modes of volshell, we can't
102102
# rely on the default having been set

0 commit comments

Comments
 (0)