[top] / posixpath / expanduser
expanduser(path)
Expand ~ and ~user constructions. If user or $HOME is unknown, do nothing.