moved the libs into some folders, added bw cli macos and supported os logic. updated code to use new paths
This commit is contained in:
@@ -22,11 +22,14 @@ pykmip_client_config_file = os.path.join(script_directory, "conf", "client.conf"
|
||||
log_file = os.path.join(script_directory, "log.log")
|
||||
|
||||
if os_detected == "Windows":
|
||||
bitwarden_cli_executable = os.path.join(script_directory, "lib", "bw.exe")
|
||||
bitwarden_cli_executable = os.path.join(script_directory, "lib", "Bitwarden CLI", "bw.exe")
|
||||
elif os_detected == "Linux":
|
||||
bitwarden_cli_executable = os.path.join(script_directory, "lib", "bw")
|
||||
bitwarden_cli_executable = os.path.join(script_directory, "lib", "Bitwarden CLI", "bw_linux")
|
||||
elif os_detected == "macOS":
|
||||
bitwarden_cli_executable = os.path.join(script_directory, "lib", "Bitwarden CLI", "bw_macOS")
|
||||
else:
|
||||
print("Your OS is not supported. Only Windows and Linux are currently supported.\nDetected OS: {0}".format(os_detected))
|
||||
print("Your OS is not supported. Only Windows and Linux are currently supported.")
|
||||
print("Detected OS: {0}".format(os_detected))
|
||||
sys.exit(1)
|
||||
|
||||
# INI format, mulitple accounts can be used.
|
||||
|
||||
Reference in New Issue
Block a user