pimoroni-pico/micropython/examples/badger2040/assets/boot.py

7 lines
136 B
Python
Raw Normal View History

2022-03-04 11:32:11 +00:00
try:
open("main.py", "r")
except OSError:
with open("main.py", "w") as f:
f.write("import _launcher")
f.flush()