From 8bdc19124fec6caa368b969e31c23729dabe9420 Mon Sep 17 00:00:00 2001 From: kingbri Date: Tue, 2 Apr 2024 22:03:08 -0400 Subject: [PATCH] Start: Fix gpu lib when reading from file Readline doesn't strip out newlines or spaces. Signed-off-by: kingbri --- start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.py b/start.py index 5b9c042..764249e 100644 --- a/start.py +++ b/start.py @@ -43,7 +43,7 @@ def get_install_features(): saved_lib_path = pathlib.Path("gpu_lib.txt") if saved_lib_path.exists(): with open(saved_lib_path.resolve(), "r") as f: - lib = f.readline() + lib = f.readline().strip() # Assume default if the file is invalid if lib not in possible_features: