fix acf_path having "dir" indicator and not file
Package Application with PyInstaller / build (push) Successful in 27s

This commit is contained in:
LunaChocken
2025-06-08 23:02:33 +01:00
parent 4c39ab90dc
commit 9c2073f1ad
+1 -3
View File
@@ -81,9 +81,7 @@ class SteamGamePathTool:
# Spaces must be replaced with %20 otherwise they won't link properly # Spaces must be replaced with %20 otherwise they won't link properly
string = f"""[b]{game['name']}[/b]""" string = f"""[b]{game['name']}[/b]"""
string+=str(TableItem(name="Game ID", data=game['appid'], colour="yellow",type="desc")) string+=str(TableItem(name="Game acf", data=f"{game['acf_path'].replace(' ', '%20')}", colour="green",type="file"))
string+=str(TableItem(name="Game Size", data=f"{int(game['SizeOnDisk'])/(1024*1024)/1024:.2f} GB", colour="red",type="desc"))
string+=str(TableItem(name="Game acf", data=f"{game['acf_path'].replace(' ', '%20')}", colour="green",type="dir"))
string+=str(TableItem(name="Game Path", data=f"{game['true_path'].replace(' ', '%20')}", colour="blue",type="dir")) string+=str(TableItem(name="Game Path", data=f"{game['true_path'].replace(' ', '%20')}", colour="blue",type="dir"))
if game['workshop_path']: if game['workshop_path']:
string+=str(TableItem(name="Game Workshop Path", data=f"{game['workshop_path'].replace(' ', '%20')}", colour="blue", type="dir")) string+=str(TableItem(name="Game Workshop Path", data=f"{game['workshop_path'].replace(' ', '%20')}", colour="blue", type="dir"))