Ghidra is a software reverse engineering (SRE) framework
GP-6825: Handling a possible NotADirectoryError in pyghidra_launcher.py
Ryan Kurtz7601b2cf6317
diff --git a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.pyindex 61e9706d98..a68bd4e800 100644--- a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py+++ b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py@@ -104,6 +104,8 @@ def find_supported_python_exe(install_dir: Path, dev: bool) -> List[str]:return cmdexcept FileNotFoundError:pass+ except NotADirectoryError:+ passreturn None