def rebase_file(relative_path_in_file, file_path_resides_in):
    '\n    In config files, you often put file paths that are meant to be relative\n    to the location of that config file. This does that calculation.\n    '
    check.str_param(relative_path_in_file, 'relative_path_in_file')
    check.str_param(file_path_resides_in, 'file_path_resides_in')
    return os.path.join(os.path.dirname(os.path.abspath(file_path_resides_in)), relative_path_in_file)
In config files, you often put file paths that are meant to be relative
to the location of that config file. This does that calculation.
def rebase_file(relative_path_in_file, file_path_resides_in):
    '\n    In config files, you often put file paths that are meant to be relative\n    to the location of that config file. This does that calculation.\n    '
    check.str_param(relative_path_in_file, 'relative_path_in_file')
    check.str_param(file_path_resides_in, 'file_path_resides_in')
    return os.path.join(os.path.dirname(os.path.abspath(file_path_resides_in)), relative_path_in_file)