From b2508139c2349e5207f163fc81c2b58e8b69d73b Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Fri, 26 Jul 2024 13:46:35 +0300 Subject: [PATCH] proton: Use more meaningful variable names. --- proton | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/proton b/proton index 75b4dbf4..47b45a2a 100755 --- a/proton +++ b/proton @@ -269,9 +269,9 @@ def try_get_game_library_dir(): #find library path which is a subset of the game path library_paths = g_session.env["STEAM_COMPAT_LIBRARY_PATHS"].split(":") - for l in library_paths: - if l in g_session.env["STEAM_COMPAT_INSTALL_PATH"]: - return l + for path in library_paths: + if path in g_session.env["STEAM_COMPAT_INSTALL_PATH"]: + return path return None @@ -1289,10 +1289,10 @@ class Session: try: if "PRESSURE_VESSEL_RUNTIME_BASE" in self.env: with open(self.env["PRESSURE_VESSEL_RUNTIME_BASE"] + "/VERSIONS.txt", "r") as f: - for l in f: - l = l.strip() - if len(l) > 0 and not l.startswith("#"): - cleaned = l.split("#")[0].strip().replace("\t", " ") + for line in f: + line = line.strip() + if len(line) > 0 and not line.startswith("#"): + cleaned = line.split("#")[0].strip().replace("\t", " ") split = cleaned.split(" ", maxsplit=1) self.log_file.write(split[0] + ": " + split[1] + "\n") except (OSError, IOError, TypeError, KeyError):