Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sample_pyhidra.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Section to make autocomplete work
try:
import os
import ghidra
from ghidra_builtins import *
except:
Expand All @@ -11,6 +12,8 @@
PROJECT_NAME = 'sample_pyghidra'
PROJECT_LOCATION = '.ghidra_projects'

os.environ["JAVA_TOOL_OPTIONS"] = "-Djava.awt.headless=true"

pyghidra.start(True) # setting Verbose output

from ghidra.program.model.listing import Program # noqa
Expand Down