workshop-micropython5

config & shell





pro verzi Micropython 1.11- / octopis 0.98+

>>> from config import Config
>>> bc = Config("boot")
>>> bc.set("import_shell",1)
>>> bc.save() 
>>> bc.print_all()         
----------------
import_shell - 1
----------------
>>> reset()
-->
>>> shell()
Protože v boot py máme:
if autostart.get("import_shell"):
   def shell():    
      from util.shell import shell
      shell()