mutapath.Path.expanduser

Path.expanduser()[source]

Expand ~ and ~user constructions. If user or $HOME is unknown, do nothing.