Update boot(strap).py
parent
6d303c554f
commit
63fb58dcdd
5
boot.py
5
boot.py
|
@ -25,11 +25,14 @@ def any_home():
|
||||||
|
|
||||||
if "no_boot" in root:
|
if "no_boot" in root:
|
||||||
print("no_boot found, aborting boot sequence")
|
print("no_boot found, aborting boot sequence")
|
||||||
|
elif "bootstrap.py" in root:
|
||||||
|
print("Bootstrapping...")
|
||||||
|
tilda.main("bootstrap.py")
|
||||||
else:
|
else:
|
||||||
start = None
|
start = None
|
||||||
if "main.py" in root:
|
if "main.py" in root:
|
||||||
start = "main.py"
|
start = "main.py"
|
||||||
start = start or file("once.txt", True) or file("default_app.txt", False) or any_home() or "bootstrap.py"
|
start = start or file("once.txt", True) or file("default_app.txt", False) or any_home()
|
||||||
if ".py" not in start:
|
if ".py" not in start:
|
||||||
start += "/main.py"
|
start += "/main.py"
|
||||||
print("Booting into %s" % start)
|
print("Booting into %s" % start)
|
||||||
|
|
|
@ -184,6 +184,7 @@ def step_download():
|
||||||
|
|
||||||
def step_goodbye():
|
def step_goodbye():
|
||||||
msg("All done!\n\nRestarting badge...")
|
msg("All done!\n\nRestarting badge...")
|
||||||
|
os.remove("bootstrap.py")
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
machine.reset()
|
machine.reset()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue