def getSelectedProfile():
    """
    Gets the selected profile from the Minecraft Launcher
    """
    try:
        selectedProfile = getMinecraftProfileJSON()['selectedProfile']
        return selectedProfile
    except:
        return None

    Gets the selected profile from the Minecraft Launcher
    
directories.py