mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-02-08 23:59:51 -06:00
Merge branch 'GP-0_ryanmkurtz_PR-8924_jstasiak_docs'
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user