mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 03:59:57 +08:00
GP-5710: Fixed a bug that prevented PyGhidra from properly using the
user's already-active virtual environment
This commit is contained in:
@@ -253,6 +253,7 @@ def main() -> None:
|
|||||||
offer_venv: bool = False
|
offer_venv: bool = False
|
||||||
if in_venv():
|
if in_venv():
|
||||||
# If we are already in a virtual environment, assume that's where the user wants to be
|
# 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}')
|
print(f'Using active virtual environment: {sys.prefix}')
|
||||||
elif os.path.isdir(venv_dir):
|
elif os.path.isdir(venv_dir):
|
||||||
# If the Ghidra user settings venv exists, use that
|
# If the Ghidra user settings venv exists, use that
|
||||||
|
|||||||
Reference in New Issue
Block a user