From a554b04cb0c42005d7b63a29c95103fbcec6424c Mon Sep 17 00:00:00 2001 From: foamyguy Date: Tue, 17 Dec 2024 17:18:02 -0600 Subject: [PATCH] fix sprite loading location --- CircuitPython_Karel_The_Robot/karel/circuitpythonkarel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CircuitPython_Karel_The_Robot/karel/circuitpythonkarel.py b/CircuitPython_Karel_The_Robot/karel/circuitpythonkarel.py index 58319f499..31d12c6e4 100644 --- a/CircuitPython_Karel_The_Robot/karel/circuitpythonkarel.py +++ b/CircuitPython_Karel_The_Robot/karel/circuitpythonkarel.py @@ -140,7 +140,7 @@ def __init__(self, display, world_width=10, world_height=10, beeper_limit=False) self.world_group = Group() self.world_group.append(self.background_group) - lib_dir = "/".join(__file__.split("/")[0:3]) + lib_dir = "karel" self.spritesheet_bmp, self.spritesheet_palette = adafruit_imageload.load( f"{lib_dir}/spritesheet.png" )