Python (via boto3) uses os.path.expanduser (I believe here) while Rust uses the HOME envvar (here). Not all environments have the HOME envvar (e.g., Bazel runtimes). Ideally the behaviors between Python and Rust AWS libraries would be as similar as possible.