mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-28 15:11:44 +00:00
make sure the user scripts dir exists before creating a script in it
This commit is contained in:
parent
9c227cbff4
commit
1a598f26b2
@ -78,6 +78,11 @@ public class AnalysisManagerTest extends AbstractGhidraHeadlessIntegrationTest {
|
||||
programBuilder.createMemory("AAA", "0x100", 0x1000);
|
||||
program = programBuilder.getProgram();
|
||||
analyzers = new ArrayList<>();
|
||||
|
||||
// make sure the user scripts subdirectory exists for createScriptFile
|
||||
File userScriptsDir = new File(GhidraScriptUtil.USER_SCRIPTS_DIR);
|
||||
userScriptsDir.mkdirs();
|
||||
|
||||
GhidraScriptUtil.initialize(new BundleHost(), null);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user