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

Function get_system_license_path

scripts/download_headless.py:21–32  ·  view source on GitHub ↗

Returns the default path to the Binary Ninja license.dat on the current platform :return: Path object to the license.dat file. :rtype: Path

()

Source from the content-addressed store, hash-verified

19
20
21def get_system_license_path() -> Path:
22 """Returns the default path to the Binary Ninja license.dat on the current platform
23
24 :return: Path object to the license.dat file.
25 :rtype: Path
26 """
27 if sys.platform == "darwin":
28 return Path.home() / 'Library' / 'Application Support' / 'Binary Ninja' / 'license.dat'
29 elif sys.platform.startswith("linux"):
30 return Path.home() / '.binaryninja' / 'license.dat'
31 else:
32 return Path.home() / 'AppData' / 'Roaming' / 'Binary Ninja' / 'license.dat'
33
34
35def get_serial_from_license(path: str) -> str:

Callers 1

download_and_installFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected