def linuxify(winSepStr, doubleBackslash=False):
    """
    Convert windows (path) string to the linux format.

    :param winSepStr: (path) string with windows-like "" separators
    :param doubleBackslash: if the slashes in the winSepStr are double (happens when you read a macro string raw. Ex.: "C:\\Program Files\\a.txt"
    :return: str with substituted "" -> "/"
    """
    if doubleBackslash:
        return winSepStr.replace('\\\\', '/')
    return winSepStr.replace('\\', '/')
