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

7 lines
136 B
Python

try:
open("main.py", "r")
except OSError:
with open("main.py", "w") as f:
f.write("import _launcher")
f.flush()