MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / get_installation_method

Function get_installation_method

keepercommander/email_service.py:37–56  ·  view source on GitHub ↗

Detect Keeper Commander installation method. Returns: str: 'binary' (PyInstaller frozen), 'pip' (installed via pip), or 'source' (development)

()

Source from the content-addressed store, hash-verified

35
36
37def 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
59def check_provider_dependencies(provider: str) -> tuple:

Calls

no outgoing calls