2026-09-13 00:37 UTC
#til that #python Path has
a method called `home` which returns a new path object representing the user’s home directory (as returned by os.path.expanduser() with ~ construct). If the home directory can’t be resolved, `RuntimeError` is raised.
learn more about it at
https://docs.python.org/3/library/pathlib.html#pathlib.Path.home
#programming
Replies (0)
No replies.