def is_relative_path(s):
    """
    Return whether the path given in argument is relative or not.
    """
    tmp = s.replace(u"\\", u"/")
    return tmp.startswith(u"../") or tmp.startswith(u"~/") or tmp.startswith(u"./")