GP-0: If pyghidra.sys.modules.restore is set, PyGhidra will restore

sys.modules each time a script is run (Closes #8529)
This commit is contained in:
Ryan Kurtz
2025-10-02 12:42:24 -04:00
parent aef70ea9be
commit 131aa4ac9a
3 changed files with 17 additions and 1 deletions
@@ -151,3 +151,8 @@ VMARGS=--enable-native-access=ALL-UNNAMED
# Disables the loaders echoing their message log to the application.log file
#VMARGS=-Ddisable.loader.logging=true
# Restores sys.modules to its prior state after a PyGhidra script is run so the next time the script
# is run, it freshly reloads all of its imported modules again. This is experimental and should only
# be enabled if necessary.
#VMARGS=-Dpyghidra.sys.modules.restore=true