Skip to content

Commit

Permalink
set correct locals priority
Browse files Browse the repository at this point in the history
  • Loading branch information
Abyss-W4tcher committed Oct 23, 2024
1 parent 708d933 commit 7f2d8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volatility3/cli/volshell/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def run(

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

0 comments on commit 7f2d8ea

Please sign in to comment.