Ghidra is a software reverse engineering (SRE) framework
Clarify the difference between ghidra and pyghidra imports
Jakub Stasiak1231a520c011
diff --git a/Ghidra/Features/PyGhidra/src/main/help/help/topics/PyGhidra/interpreter.html b/Ghidra/Features/PyGhidra/src/main/help/help/topics/PyGhidra/interpreter.htmlindex 13ff477501..fdd5976545 100644--- a/Ghidra/Features/PyGhidra/src/main/help/help/topics/PyGhidra/interpreter.html+++ b/Ghidra/Features/PyGhidra/src/main/help/help/topics/PyGhidra/interpreter.html@@ -25,6 +25,13 @@them through a Python interface, which is similar to Java in some ways.</P>+ <P>+ <B>Note on imports:</B> Since you are running inside Ghidra, you do <I>not</I> need to+ <TT>import pyghidra</TT> or call <TT>pyghidra.start()</TT>. The <TT>pyghidra</TT> module is+ only needed for standalone Python scripts running outside of Ghidra. Here, you can directly+ import Ghidra API modules like <TT>from ghidra.program.flatapi import FlatProgramAPI</TT>.+ </P>+<P>As in Java, classes outside of your current package/module need to be explicitly imported.For example, consider the following code snippet: