From a3a086fa9271e4513827510a370566b01d49da86 Mon Sep 17 00:00:00 2001 From: "Queen Vinyl Da.i'gyu-Kazotetsu" Date: Tue, 28 May 2024 22:08:35 -0700 Subject: [PATCH] Update traceKeyExtractor.py Co-authored-by: thekakester --- traceKeyExtractor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/traceKeyExtractor.py b/traceKeyExtractor.py index 64dec6a..f8f349d 100644 --- a/traceKeyExtractor.py +++ b/traceKeyExtractor.py @@ -58,7 +58,9 @@ 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 = Path(result.stdout) + pm3Location = result.stdout.decode("utf-8") + pm3Location = pm3Location.replace("\n","").replace("\r","") + pm3Location = Path(pm3Location) except Exception as e: # If Homebrew command failed, it's probably not installed pass