From f970bd61f0ef493900208c0ea2d8dafd8e67100f Mon Sep 17 00:00:00 2001 From: Rowan Date: Thu, 4 Jul 2024 12:16:48 +0100 Subject: [PATCH] Update launcher.py Fixed launcher listing /examples when APP_DIR has been changed. --- badger_os/launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/badger_os/launcher.py b/badger_os/launcher.py index a860633..372a239 100644 --- a/badger_os/launcher.py +++ b/badger_os/launcher.py @@ -37,7 +37,7 @@ badger_os.state_load("launcher", state) -examples = [x[:-3] for x in os.listdir("/examples") if x.endswith(".py")] +examples = [x[:-3] for x in os.listdir(APP_DIR) if x.endswith(".py")] # Approximate center lines for buttons A, B and C centers = (41, 147, 253)