Start: Fix gpu lib when reading from file

Readline doesn't strip out newlines or spaces.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri 2024-04-02 22:03:08 -04:00
parent cdb96e4f74
commit 8bdc19124f

View file

@ -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: