import platform


def on_wsl() -> bool:
    """ Function that will detect if the program is runned on wsl

    Returns
    -------
    isOnWSL : bool
        Boolean value that indicates if the program is on wsl
    """
    isOnWSL=False
    
    uname=platform.uname()
    system=uname[0]
    release=uname[2]

    if system.lower() == 'linux' and 'microsoft' in release.lower():
        isOnWSL=True
    return isOnWSL