From 621b6c1dd59369f2170469ba179bc8d6cf70f7d4 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Thu, 15 Feb 2024 11:03:22 -0800 Subject: [PATCH] ulwgl_dl_util: prefer joining Paths --- ulwgl_dl_util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ulwgl_dl_util.py b/ulwgl_dl_util.py index 4ce306b..0d9bd1b 100644 --- a/ulwgl_dl_util.py +++ b/ulwgl_dl_util.py @@ -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 # Assumes the tarball is legitimate if ( - files - and Path(Path().home().as_posix() + "/.cache/ULWGL" + files[1][0]).is_file() - ): + files and Path(Path().home().as_posix() + "/.cache/ULWGL").joinpath(files[1][0]) + ).is_file(): proton: str = files[1][0] + print(f"{proton} found in: {cache.as_posix()}") _extract_dir( - Path(Path().home().as_posix() + "/.cache/ULWGL").joinpath(files[1][0]), + Path(Path().home().as_posix() + "/.cache/ULWGL").joinpath(proton), steam_compat, )