mirror of
https://github.com/lutris/lutris
synced 2024-09-04 23:13:35 +00:00
Create folder for Ubisoft auth files (Fixes #5011)
This commit is contained in:
parent
b88f9b9612
commit
3c6245546c
|
@ -167,6 +167,8 @@ class UbisoftConnectService(OnlineService):
|
|||
return ubi_games
|
||||
|
||||
def store_credentials(self, credentials):
|
||||
if not os.path.exists(os.path.dirname(self.token_path)):
|
||||
os.mkdir(os.path.dirname(self.token_path))
|
||||
with open(self.token_path, "w", encoding='utf-8') as auth_file:
|
||||
auth_file.write(json.dumps(credentials, indent=2))
|
||||
|
||||
|
|
Loading…
Reference in a new issue