Detect Keeper Commander installation method. Returns: str: 'binary' (PyInstaller frozen), 'pip' (installed via pip), or 'source' (development)
()
| 35 | |
| 36 | |
| 37 | def get_installation_method(): |
| 38 | """ |
| 39 | Detect Keeper Commander installation method. |
| 40 | |
| 41 | Returns: |
| 42 | str: 'binary' (PyInstaller frozen), 'pip' (installed via pip), or 'source' (development) |
| 43 | """ |
| 44 | |
| 45 | # Check if running as PyInstaller binary |
| 46 | if getattr(sys, 'frozen', False): |
| 47 | return 'binary' |
| 48 | |
| 49 | # Check if installed via pip |
| 50 | location = keepercommander.__file__ |
| 51 | |
| 52 | if 'site-packages' in location or 'dist-packages' in location: |
| 53 | return 'pip' |
| 54 | |
| 55 | # Running from source |
| 56 | return 'source' |
| 57 | |
| 58 | |
| 59 | def check_provider_dependencies(provider: str) -> tuple: |
no outgoing calls