Skip to content

Commit a554b04

Browse files
committed
fix sprite loading location
1 parent 4f2193e commit a554b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CircuitPython_Karel_The_Robot/karel/circuitpythonkarel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def __init__(self, display, world_width=10, world_height=10, beeper_limit=False)
140140
self.world_group = Group()
141141
self.world_group.append(self.background_group)
142142

143-
lib_dir = "/".join(__file__.split("/")[0:3])
143+
lib_dir = "karel"
144144
self.spritesheet_bmp, self.spritesheet_palette = adafruit_imageload.load(
145145
f"{lib_dir}/spritesheet.png"
146146
)

0 commit comments

Comments
 (0)