added ini format, updated bw linux to correct file, added commnets for ini sections

This commit is contained in:
crp3844
2022-09-06 14:56:04 -04:00
parent 564e5f96bf
commit de945f6668

View File

@@ -12,9 +12,19 @@ SCRIPT_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
if OS_DETECTED == 'Windows':
BITWARDEN_CLI_EXECUTABLE = "bw.exe"
elif OS_DETECTED == 'Linux':
BITWARDEN_CLI_EXECUTABLE = "bw.exe"
BITWARDEN_CLI_EXECUTABLE = "bw"
else:
print("Your OS is not supported. Only Windows and Linux are currently supported.\nDetected OS: {0}".format(OS_DETECTED))
sys.exit(1)
print("Detected OS: {0}".format(SCRIPT_DIRECTORY))
#parser = configparser.ConfigParser()
#parser.read(SCRIPT_DIRECTORY + '/secrets.ini')
#accounts = parser.sections()
#for account in accounts:
# print("User Account is {0}".format(account))
# INI format, mulitple accounts can be used.
#[Account Email Address]
#ENCRYPTED_API_CLIENT_ID =
#ENCRYPTED_API_SECRET =
#ENCRYPTED_VAULT_PASSWORD =