def normpath(platfrm, fpath):
    """
    Normalize the path in an expected manner
    """
    if platfrm.find('windows') > -1:
        return fpath.replace('/', '\\')
    else:
        return fpath.replace('\\', '/')