diff --git a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py index 88aa2da78a..8994a821de 100644 --- a/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py +++ b/Ghidra/Features/PyGhidra/support/pyghidra_launcher.py @@ -86,10 +86,10 @@ def in_venv() -> bool: def is_externally_managed() -> bool: get_default_scheme = 'get_default_scheme' if hasattr(sysconfig, get_default_scheme): - # Python 3.10 and later + # Python 3.10 and later default_scheme = getattr(sysconfig, get_default_scheme) else: - # Python 3.9 + # Python 3.9 default_scheme = getattr(sysconfig, f'_{get_default_scheme}') marker: Path = Path(sysconfig.get_path("stdlib", default_scheme())) / 'EXTERNALLY-MANAGED' return marker.is_file() @@ -214,7 +214,7 @@ def main() -> None: print('Run "gradle prepdev" and try again.') sys.exit(1) python_cmd = get_venv_exe(venv_dir) - print(f'Switchiing to Ghidra virtual environment: {venv_dir}') + print(f'Switching to Ghidra virtual environment: {venv_dir}') else: # If in release mode, offer to install or upgrade PyGhidra before launching from user-controlled environment pip_args: List[str] = ['-m', 'pip', 'install', '--no-index', '-f', str(dist_dir), 'pyghidra']