gets the site package and creates it if needed returns empty if fails
()
| 41 | |
| 42 | |
| 43 | def 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 | |
| 58 | def binaryninja_installed() -> bool: |
no test coverage detected