mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
make sure the user scripts dir exists before creating a script in it
This commit is contained in:
parent
9c227cbff4
commit
1a598f26b2
1 changed files with 5 additions and 0 deletions
|
@ -78,6 +78,11 @@ public class AnalysisManagerTest extends AbstractGhidraHeadlessIntegrationTest {
|
||||||
programBuilder.createMemory("AAA", "0x100", 0x1000);
|
programBuilder.createMemory("AAA", "0x100", 0x1000);
|
||||||
program = programBuilder.getProgram();
|
program = programBuilder.getProgram();
|
||||||
analyzers = new ArrayList<>();
|
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);
|
GhidraScriptUtil.initialize(new BundleHost(), null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue