If the two absolute paths are on different drives or partitions, the os.path.relpath() function will raise a ValueError. In this case, you may need to use a different approach to get the relative path between the two paths, such as manually parsing the paths and comparing them.