mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-5138: GhidraDev/PyDev/PyGhidra integration
This commit is contained in:
@@ -160,11 +160,14 @@ class PyGhidraLauncher:
|
||||
install_dir = install_dir or os.getenv("GHIDRA_INSTALL_DIR")
|
||||
self._install_dir = self._validate_install_dir(install_dir)
|
||||
|
||||
java_home_override = os.getenv("JAVA_HOME_OVERRIDE")
|
||||
if java_home_override:
|
||||
self._java_home = java_home_override
|
||||
|
||||
# check if we are in the ghidra source tree
|
||||
support = Path(install_dir) / "support"
|
||||
if not support.exists():
|
||||
self._dev_mode = True
|
||||
self._java_home = os.getenv("JAVA_HOME_OVERRIDE")
|
||||
|
||||
self._plugins: List[Tuple[Path, ExtensionDetails]] = []
|
||||
self.verbose = verbose
|
||||
@@ -469,7 +472,7 @@ class PyGhidraLauncher:
|
||||
self._pre_launch_init()
|
||||
self._launch()
|
||||
except Exception as e:
|
||||
self._report_fatal_error("An error occured launching Ghidra", str(e), e)
|
||||
self._report_fatal_error("An error occurred launching Ghidra", str(e), e)
|
||||
|
||||
def get_install_path(self, plugin_name: str) -> Path:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user