ulwgl_dl_util: prefer joining Paths

This commit is contained in:
R1kaB3rN 2024-02-15 11:03:22 -08:00
parent 9a116c6a0a
commit 621b6c1dd5
No known key found for this signature in database

View File

@ -41,13 +41,13 @@ def get_ulwgl_proton(env: Dict[str, str]) -> Union[Dict[str, str], None]:
# Check if the latest isn't already in the cache # Check if the latest isn't already in the cache
# Assumes the tarball is legitimate # Assumes the tarball is legitimate
if ( if (
files files and Path(Path().home().as_posix() + "/.cache/ULWGL").joinpath(files[1][0])
and Path(Path().home().as_posix() + "/.cache/ULWGL" + files[1][0]).is_file() ).is_file():
):
proton: str = files[1][0] proton: str = files[1][0]
print(f"{proton} found in: {cache.as_posix()}") print(f"{proton} found in: {cache.as_posix()}")
_extract_dir( _extract_dir(
Path(Path().home().as_posix() + "/.cache/ULWGL").joinpath(files[1][0]), Path(Path().home().as_posix() + "/.cache/ULWGL").joinpath(proton),
steam_compat, steam_compat,
) )