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:
crp3844
2022-09-08 09:31:17 -04:00
parent fddaf8ac15
commit 824eb2488d
6 changed files with 6 additions and 3 deletions

View File

@@ -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.