lol-account-manager icon indicating copy to clipboard operation
lol-account-manager copied to clipboard

Tool won't run if LoL is not installed in the default location

Open ignacioambrois opened this issue 2 years ago • 3 comments

def login(self):
        subprocess.call(["C:\Riot Games\League of Legends\LeagueClient.exe"])
        time.sleep(2.5)
        keyboard.type(self.username)
        keyboard.press(Key.tab)
        keyboard.release(Key.tab)
        time.sleep(0.25)
        keyboard.type(self.password)

This code hardcodes the League Client's location, as such, installation with non-default locations will fail to work with the tool.

ignacioambrois avatar Jun 05 '22 22:06 ignacioambrois