@HenryDashwood The issue here is that you use `~/.env`, which is not directly resolved by `pathlib.Path`. You could change it to ```python class Config: env_file = os.path.expanduser('~/.env') ``` Maybe we could add `expanduser` directly in the code when `env_path` is created _Originally posted by @PrettyWood in https://github.com/samuelcolvin/pydantic/issues/1368#issuecomment-669312462_