Returns the default path to the Binary Ninja license.dat on the current platform :return: Path object to the license.dat file. :rtype: Path
()
| 19 | |
| 20 | |
| 21 | def 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 | |
| 35 | def get_serial_from_license(path: str) -> str: |
no outgoing calls
no test coverage detected