32 lines
843 B
Python
32 lines
843 B
Python
# library needed
|
|
import sys
|
|
import os
|
|
import subprocess
|
|
import platform
|
|
import json
|
|
import configparser
|
|
import getpass
|
|
|
|
OS_DETECTED = platform.system()
|
|
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"
|
|
else:
|
|
print("Your OS is not supported. Only Windows and Linux are currently supported.\nDetected OS: {0}".format(OS_DETECTED))
|
|
sys.exit(1)
|
|
|
|
#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 =
|