Skip to content

Instantly share code, notes, and snippets.

@kkmonster
Created January 9, 2021 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkmonster/cefde678b21ddd21c8b8c4dac7461765 to your computer and use it in GitHub Desktop.
Save kkmonster/cefde678b21ddd21c8b8c4dac7461765 to your computer and use it in GitHub Desktop.
# remove main.py boot.py - By: kkmon - Tue Nov 17 2020
import sensor, image, time
import os, sys, time
sys.path.append('')
sys.path.append('.')
os.chdir("/flash")
sys.path.append('/flash')
print(os.listdir())
try:
os.remove("main.py")
except Exception:
pass
try:
os.remove("boot.py")
except Exception:
pass
print(os.listdir())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment