Used 'supervisor.runtime' instead of just 'runtime'
This commit is contained in:
parent
52e0aedf2e
commit
88cb051636
1 changed files with 3 additions and 6 deletions
|
|
@ -35,10 +35,7 @@ if implementation.name.upper() == "MICROPYTHON":
|
|||
readonly = False
|
||||
imp = "M"
|
||||
elif implementation.name.upper() == "CIRCUITPYTHON":
|
||||
if not Pydos_ui:
|
||||
from supervisor import runtime
|
||||
|
||||
from supervisor import reload
|
||||
from supervisor import runtime, reload
|
||||
import storage
|
||||
import microcontroller
|
||||
import displayio
|
||||
|
|
@ -229,8 +226,8 @@ def PyDOS():
|
|||
if "_display" not in envVars.keys():
|
||||
if "display" in dir(Pydos_ui):
|
||||
envVars["_display"] = Pydos_ui.display
|
||||
elif "display" in dir(supervisor.runtime):
|
||||
envVars["_display"] = supervisor.runtime.display
|
||||
elif "display" in dir(runtime):
|
||||
envVars["_display"] = runtime.display
|
||||
elif "display" in dir(board):
|
||||
envVars["_display"] = board.display
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue