def get_user_sc2_install():
    "Attempts to find a user's SC2 install if their OS has ExecuteInfo.txt"
    if USERPATH[PF]:
        einfo = str((get_home() / Path(USERPATH[PF])))
        if os.path.isfile(einfo):
            with open(einfo) as f:
                content = f.read()
            if content:
                base = re.search(' = (.*)Versions', content).group(1)
                if (PF in {'WSL1', 'WSL2'}):
                    base = str(wsl.win_path_to_wsl_path(base))
                if os.path.exists(base):
                    return base
    return None
Attempts to find a user's SC2 install if their OS has ExecuteInfo.txt
def get_user_sc2_install():
    
    if USERPATH[PF]:
        einfo = str((get_home() / Path(USERPATH[PF])))
        if os.path.isfile(einfo):
            with open(einfo) as f:
                content = f.read()
            if content:
                base = re.search(' = (.*)Versions', content).group(1)
                if (PF in {'WSL1', 'WSL2'}):
                    base = str(wsl.win_path_to_wsl_path(base))
                if os.path.exists(base):
                    return base
    return None