From 8ff5444ac14569ff8fed2f99bdfabc6e4cc441ce Mon Sep 17 00:00:00 2001 From: Ryan Kurtz Date: Wed, 21 May 2025 09:43:29 -0400 Subject: [PATCH] GP-5710: Fixed a bug that prevented PyGhidra from properly using the user's already-active virtual environment --- Ghidra/Features/PyGhidra/support/pyghidra_launcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py index 17b54d9794..8f1c302020 100644 --- a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py +++ b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py @@ -253,6 +253,7 @@ def main() -> None: offer_venv: bool = False if in_venv(): # If we are already in a virtual environment, assume that's where the user wants to be + python_cmd = get_venv_exe(Path(sys.prefix)) print(f'Using active virtual environment: {sys.prefix}') elif os.path.isdir(venv_dir): # If the Ghidra user settings venv exists, use that