MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / _bin_version

Method _bin_version

python/scriptingprovider.py:1134–1137  ·  view source on GitHub ↗
(self, python_bin: str, python_env: Optional[Dict]=None)

Source from the content-addressed store, hash-verified

1132 yield line.split("==", 2)[0]
1133
1134 def _bin_version(self, python_bin: str, python_env: Optional[Dict]=None):
1135 return self._run_args([
1136 str(python_bin), "-c", "import sys; sys.stdout.write(f'{sys.version_info.major}.{sys.version_info.minor}')"
1137 ], env=python_env)[1]
1138
1139 def _get_executable_for_libpython(self, python_lib: str, python_bin: str, python_env: Optional[Dict]=None) -> Tuple[Optional[str], str]:
1140 python_lib_version = f"{sys.version_info.major}.{sys.version_info.minor}"

Callers 1

Calls 1

_run_argsMethod · 0.95

Tested by

no test coverage detected