fix Ghidra detection

This commit is contained in:
Mike Hunhoff
2023-08-28 13:24:14 -06:00
parent 995014afc2
commit f3a2a5958d

View File

@@ -44,7 +44,11 @@ def is_runtime_ida():
def is_runtime_ghidra():
return importlib.util.find_spec("ghidra") is not None
try:
currentProgram # type: ignore [name-defined] # noqa: F821
except NameError:
return False
return True
def assert_never(value) -> NoReturn: