TIL: `os.path` commands Cheatsheet

os.path — Common pathname manipulations

os.path.join(path, *paths)  Join paths intelligently
os.path.expanduser(path) Expand ~ to user’s home directory
os.path.exists(path) Check if path exists