mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
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:
2
start.py
2
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:
|
||||
|
||||
Reference in New Issue
Block a user