From 36c8d90a76e7ba14bfc0142499dae4b589237779 Mon Sep 17 00:00:00 2001 From: R1kaB3rN <100738684+R1kaB3rN@users.noreply.github.com> Date: Sun, 14 Jul 2024 13:32:20 -0700 Subject: [PATCH] Fix AttributeError in CI - Use WINEPREFIX from the environment then use Proton's environment. The value of WINEPREFIX set from a umu client and WINEPREFIX from the proton script are basically equivalent as they refer to the same filesystem paths, so there should be no functional differences. --- fix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fix.py b/fix.py index f209b06c..c28bc2a7 100755 --- a/fix.py +++ b/fix.py @@ -48,7 +48,7 @@ def get_game_id() -> str: def get_game_name() -> str: #pylint: disable=R0914 """ Trys to return the game name from environment variables """ - pfx = protonmain.g_session.env.get('WINEPREFIX') + pfx = os.environ.get('WINEPREFIX') or protonmain.g_session.env.get('WINEPREFIX') if os.environ.get('UMU_ID'): if os.path.isfile(f'{pfx}/game_title'):