import ntpath


def get_relpath(path):
    """ gets the relative path without file

    Args:
        path (string): path to the file
            
    Returns:
        string: the relative path
    """
    return ntpath.split(path)[0]