A Path Less Traveled
If you’re like me, you’ve probably written a Python script or two that had to manipulate pathnames. For that, you’ve probably used the much beloved os.path module—and perhaps the glob module. And let’s not forget some of their friends such as
fnmatch, shutil, subprocess, and various bits of functionality in
os. Aw, let’s face it, who are we kidding here? Pathname handling in Python is an inexplicable mess, has always been a mess, and will always continue to be a mess. Or will it?