From ca2691c4cee277b561b85193e6e619fefe3136c9 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Tue, 28 May 2024 22:11:02 -0700 Subject: [PATCH] Simplify pm3Location creation via Homebrew --- traceKeyExtractor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/traceKeyExtractor.py b/traceKeyExtractor.py index f8f349d..0e0f741 100644 --- a/traceKeyExtractor.py +++ b/traceKeyExtractor.py @@ -58,9 +58,7 @@ def main(): # Check the return code to determine if the command was successful if result.returncode == 0 or result.returncode == 1: print("Found installation via Homebrew!") - pm3Location = result.stdout.decode("utf-8") - pm3Location = pm3Location.replace("\n","").replace("\r","") - pm3Location = Path(pm3Location) + pm3Location = Path(result.stdout.decode("utf-8").strip()) except Exception as e: # If Homebrew command failed, it's probably not installed pass