From e23ed300ee86bed4eafd4975b9baa9a33dbf3e36 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Wed, 14 Feb 2024 09:21:25 -0800 Subject: [PATCH] ulwgl_run: prefer referencing parent than cwd - Related to https://github.com/Open-Wine-Components/ULWGL-launcher/commit/29827d076f6ff10ee50d04fcb5c208ace77bc23e --- ulwgl_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ulwgl_run.py b/ulwgl_run.py index 2a9e7e8..d8484f6 100755 --- a/ulwgl_run.py +++ b/ulwgl_run.py @@ -234,7 +234,7 @@ def build_command( """Build the command to be executed.""" paths: List[Path] = [ Path(Path().home().as_posix() + "/.local/share/ULWGL/ULWGL"), - Path(Path(__file__).cwd().as_posix() + "/ULWGL"), + Path(Path(__file__).parent.as_posix() + "/ULWGL"), ] entry_point: str = "" verb: str = env["PROTON_VERB"] @@ -248,7 +248,7 @@ def build_command( # Raise an error if the _v2-entry-point cannot be found if not entry_point: home: str = Path().home().as_posix() - dir: str = Path(__file__).cwd().as_posix() + dir: str = Path(__file__).parent.as_posix() msg: str = ( f"Path to _v2-entry-point cannot be found in: {home}/.local/share or {dir}" )