1 2 from os import path 3 4 -def siblingpath(filepath, filename): 5 return path.join(path.dirname(filepath), filename) 6