Skip to content

Commit

Permalink
Start: Fix gpu lib when reading from file
Browse files Browse the repository at this point in the history
Readline doesn't strip out newlines or spaces.

Signed-off-by: kingbri <[email protected]>
  • Loading branch information
bdashore3 committed Apr 3, 2024
1 parent cdb96e4 commit 8bdc191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8bdc191

Please sign in to comment.