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

Function getsitepackage

scripts/install_api.py:43–55  ·  view source on GitHub ↗

gets the site package and creates it if needed returns empty if fails

()

Source from the content-addressed store, hash-verified

41
42
43def getsitepackage() -> str:
44 """
45 gets the site package and creates it if needed
46 returns empty if fails
47 """
48 install_path = getsitepackages()[0]
49 if not os.path.exists(install_path):
50 try:
51 os.makedirs(install_path, exist_ok=True)
52 except OSError:
53 print_error(f"Root install specified but cannot create {install_path}")
54 return ''
55 return install_path
56
57
58def binaryninja_installed() -> bool:

Callers 1

installFunction · 0.85

Calls 1

print_errorFunction · 0.85

Tested by

no test coverage detected