Fix syntax error

This commit is contained in:
Lx32 2024-01-15 17:59:25 +01:00 committed by GitHub
parent b701c30d26
commit ba14e409e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,10 +348,10 @@ def addToSteam():
boilr_path=os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/boilr/config.toml") boilr_path=os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/boilr/config.toml")
if os.path.isfile(boilr_path): if os.path.isfile(boilr_path):
with open("boilr_path","r") as f: with open(boilr_path,"r") as f:
data=f.read() data=f.read()
data=re.sub("games_folder.*","games_folder = "+rdhome+"/sync/",data) data=re.sub("games_folder.*","games_folder = "+rdhome+"/sync/",data)
with open("boilr_path","w") as f: with open(boilr_path,"w") as f:
f.write(data) f.write(data)
else: else:
print("Error! BoilR config not initialized.") print("Error! BoilR config not initialized.")