Fixed sync path in steam-sync.py

This commit is contained in:
Lx32 2024-01-15 15:16:13 +01:00 committed by GitHub
parent 29ade62016
commit b701c30d26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -341,9 +341,21 @@ def addToSteam():
if not os.path.exists(rdhome+"/sync/"): if not os.path.exists(rdhome+"/sync/"):
os.makedirs(rdhome+"/sync/") os.makedirs(rdhome+"/sync/")
'''
if not os.path.exists(os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/boilr/sync")): if not os.path.exists(os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/boilr/sync")):
os.symlink(rdhome+"/sync",os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/boilr/sync")) os.symlink(rdhome+"/sync",os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/boilr/sync"))
'''
boilr_path=os.path.expanduser("~/.var/app/net.retrodeck.retrodeck/config/boilr/config.toml")
if os.path.isfile(boilr_path):
with open("boilr_path","r") as f:
data=f.read()
data=re.sub("games_folder.*","games_folder = "+rdhome+"/sync/",data)
with open("boilr_path","w") as f:
f.write(data)
else:
print("Error! BoilR config not initialized.")
for system in os.listdir(rdhome+"/gamelists/"): for system in os.listdir(rdhome+"/gamelists/"):
print("Start parsing system: {}".format(system)) print("Start parsing system: {}".format(system))