Python has `os.pathsep`, which is simple enough.