16 Commits

Author SHA1 Message Date
Ryan Kurtz
56252685c0 GP-6252: pyghidra_launcher.py fixes
pyghidra_launcher.py can now use an existing pyghidra
installation in an externally managed environment. Upgrading is disabled
in this scenario.

Fixed an issue with getting the package version from an arbitrary
environment
2025-12-19 07:35:45 -05:00
Ryan Kurtz
0ccff8ed76 Merge remote-tracking branch 'origin/patch' 2025-12-17 05:47:20 -05:00
Ryan Kurtz
fed6dd7864 GP-0: Fixing wrong output in pyghidra_launcher.py (Closes #8791) 2025-12-17 05:45:15 -05:00
Ryan Kurtz
09327173a4 Merge remote-tracking branch 'origin/Ghidra_12.0' 2025-11-24 05:45:29 -05:00
Ryan Kurtz
06ae0f5660 GP-0: Removing unneeded PyGhidra print 2025-11-24 05:42:35 -05:00
Ryan Kurtz
aabf436723 Merge remote-tracking branch 'origin/Ghidra_12.0' 2025-11-19 10:50:54 -05:00
Ryan Kurtz
c32ead3c69 GP-0: Fixing user settings location in dev mode for LaunchSupport and
PyGhidra
2025-11-19 10:35:34 -05:00
jhq223
8148f6364f refactor(pyghidra_launcher): Improve get_package_version implementation
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.
2025-10-25 18:18:05 +08:00
Ryan Kurtz
951f5a5daa GP-6021: PyGhidra stdout/stderr scripting console fixes 2025-09-26 12:51:32 -04:00
Ryan Kurtz
8ff5444ac1 GP-5710: Fixed a bug that prevented PyGhidra from properly using the
user's already-active virtual environment
2025-05-21 09:43:29 -04:00
Ryan Kurtz
50a0bcd050 GP-0: Removing shorthand -c and -d command line args from
pyghidra_launcher.py...they interfered with some AnalyzeHeadless args
2025-04-09 13:35:25 -04:00
Ryan Kurtz
034c696512 GP-5372: PyGhidra now respects the application.settingsdir property set
in Ghidra's launch.properties (Closes #7481)
2025-02-12 12:16:41 -05:00
Ryan Kurtz
2af9fbc6a3 GP-0: Fixing typo in pyghidra_launcher.py 2025-01-06 12:30:32 -05:00
Ryan Kurtz
a1550766f2 GP-0: Fixing pyghidra_launcher.py issue with Python 3.9 2024-12-18 14:13:04 -05:00
Ryan Kurtz
6443e97b64 GP-5179: Improvements to pyghidra_launcher.py
* Specifying supported Python versions in application.properties
so other things can get access to it (similar to how we do it for Java
and Gradle supported versions)

* Only try to launch PyGhidra with a supported version of Python
2024-12-10 11:11:19 -05:00
Ryan Kurtz
faf55a8de6 GP-5078: Improvements to Ghidra Module directory layout 2024-10-31 10:34:26 -04:00