From 242d1275ac0f86c4fabc193a40e9115b64f54a0e Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Mon, 7 Apr 2025 11:15:29 -0700 Subject: [PATCH] Fix expected get_boot_config to return folder --- adafruit-pitft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit-pitft.py b/adafruit-pitft.py index eb57771..8d23b90 100644 --- a/adafruit-pitft.py +++ b/adafruit-pitft.py @@ -747,7 +747,7 @@ boot_dir = "/boot/firmware" if shell.isdir("/boot/firmware") else "/boot" # If neither directory is valid, use shell.get_boot_config() if not shell.isdir(boot_dir): - boot_dir = shell.get_boot_config() + boot_dir = os.path.dirname(shell.get_boot_config()) # Final safeguard: Ensure boot_dir is actually a directory and not a file path if boot_dir is None or not shell.isdir(boot_dir):