mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-08 21:47:59 -05:00
Refactors the `get_package_version` helper function to use the standard `importlib.metadata` library instead of a subprocess call to `pip show`. This change provides several benefits: - Robustness: Avoids brittle parsing of command-line tool output. - Performance: Eliminates the overhead of spawning a new process. - Correctness: The return type hint is corrected to `Optional[str]` to accurately reflect that the function can return `None`. - Simplicity: The unused `python_cmd` parameter has been removed, simplifying the function's signature.
PyGhidra
This module provides the following capabilities:
- The PyGhidra Python library and its dependencies.
- A Plugin that provides a CPython interpreter.
- A ScriptProvider capable of running GhidraScripts written in native CPython 3.
- An interactive python script that Ghidra uses to install and launch PyGhidra. This script handles virtual environments and externally managed environments.