I am trying to pass a policy document to be encoded into base64.
The policy document is located at ~/policy_document
>>> policy = base64.b64encode(policy_document)
What do I need to do here to get policy_document to pass it to base64? Thank you.
Alternately, if you need it to be from the current user’s home folder you could add a call to
os.path.expanduser("~/policy_document")