diff --git a/Ghidra/Features/PyGhidra/src/main/py/README.md b/Ghidra/Features/PyGhidra/src/main/py/README.md index 2b6e580250..591a4198b8 100644 --- a/Ghidra/Features/PyGhidra/src/main/py/README.md +++ b/Ghidra/Features/PyGhidra/src/main/py/README.md @@ -31,7 +31,11 @@ To install the PyGhidra Python library: Python editor supports it). The type stubs module is specific to each version of Ghidra: * Online: `pip install ghidra-stubs==` * Offline: `python3 -m pip install --no-index -f /docs/ghidra_stubs ghidra-stubs` -4. Optionally point PyGhidra at your Ghidra installation by setting the `GHIDRA_INSTALL_DIR` +4. Optionally install the Java type stubs to improve your development experience (assuming your + Python editor supports it): + * Online: `pip install java-stubs-converted-strings` + * Offline: Not available +5. Optionally point PyGhidra at your Ghidra installation by setting the `GHIDRA_INSTALL_DIR` environment variable. If not set, PyGhidra will point itself at the last used installation of Ghidra. Alternatively, you can point PyGhidra at a Ghidra installation with `pyghidra.start(install_dir=)` (see below). @@ -557,6 +561,10 @@ import pdb # imports Python's pdb import pdb_ # imports Ghidra's pdb ``` ## Change History +__3.0.2__ +* Fixed an issue that prevented [`pyghidra.analysis_properties()`](#pyghidraanalysis_properties) + from having access to all of the analysis properties. + __3.0.1__ * Fixed `AttributeError: module 'pyghidra' has no attribute 'program_conext'` when performing a `from pyghidra import *`. diff --git a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/__init__.py b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/__init__.py index 6770a6d0be..e9cd49d2d4 100644 --- a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/__init__.py +++ b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/__init__.py @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. ## -__version__ = "3.0.1" +__version__ = "3.0.2" # stub for documentation and typing # this is mostly to hide the function parameter diff --git a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/api.py b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/api.py index 024636e8e7..a29b5048d8 100644 --- a/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/api.py +++ b/Ghidra/Features/PyGhidra/src/main/py/src/pyghidra/api.py @@ -280,6 +280,8 @@ def analysis_properties(program: "Program") -> "Options": :return: the Ghidra "Program.ANALYSIS_PROPERTIES" options. """ from ghidra.program.model.listing import Program + from ghidra.app.plugin.core.analysis import AutoAnalysisManager + AutoAnalysisManager.getAnalysisManager(program).initializeOptions() return program.getOptions(Program.ANALYSIS_PROPERTIES) def program_info(program: "Program") -> "Options":