fix(examples) remove symlinks (#2406)

Remove symlinks from Python examples because the JS simulator doesn't follow them and sees the target filename instead
This commit is contained in:
Amir Gonnen
2021-07-28 02:13:30 +03:00
committed by GitHub
parent 637b706ddc
commit 559b6458c0
2 changed files with 4 additions and 4 deletions

View File

@@ -18,10 +18,10 @@ label.set_text(" memory free:" + str(mem_free/1024) + " kB")
# Create an image from the png file
try:
with open('../../assets/img_star.png','rb') as f:
with open('../../assets/star.png','rb') as f:
png_data = f.read()
except:
print("Could not find img_star.png")
print("Could not find star.png")
sys.exit()
img_star = lv.img_dsc_t({

View File

@@ -7,10 +7,10 @@ decoder.open_cb = open_png
# Create an image from the png file
try:
with open('../../assets/img_star.png','rb') as f:
with open('../../assets/star.png','rb') as f:
png_data = f.read()
except:
print("Could not find img_star.png")
print("Could not find star.png")
sys.exit()
img_star_argb = lv.img_dsc_t({