From aa96ca9797c0677c1adb1c11a5ab04ba3dee5592 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 13 Feb 2026 11:08:47 +0100 Subject: [PATCH] Comments and output --- internal_filesystem/lib/mpos/build_info.py | 2 +- internal_filesystem/lib/mpos/main.py | 9 ++++++--- internal_filesystem/main.py | 3 +-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/internal_filesystem/lib/mpos/build_info.py b/internal_filesystem/lib/mpos/build_info.py index d9d88edc..ad2bbc09 100644 --- a/internal_filesystem/lib/mpos/build_info.py +++ b/internal_filesystem/lib/mpos/build_info.py @@ -9,5 +9,5 @@ class BuildInfo: class version: """Version information.""" - release = "0.8.0" + release = "0.8.1" api_level = 0 # subject to change until API Level 1 diff --git a/internal_filesystem/lib/mpos/main.py b/internal_filesystem/lib/mpos/main.py index 4763e533..af6f1c92 100644 --- a/internal_filesystem/lib/mpos/main.py +++ b/internal_filesystem/lib/mpos/main.py @@ -5,7 +5,7 @@ import lvgl as lv import mpos.ui import mpos.ui.topmenu -from mpos import AppearanceManager, DisplayMetrics, AppManager, SharedPreferences, TaskManager, DeviceInfo +from mpos import AppearanceManager, AppManager, BuildInfo, DeviceInfo, DisplayMetrics, SharedPreferences, TaskManager def init_rootscreen(): """Initialize the root screen and set display metrics.""" @@ -74,8 +74,11 @@ def detect_board(): # default: if single_address_i2c_scan(i2c0, 0x6A): # IMU but currently not installed return "fri3d_2026" +# EXECUTION STARTS HERE + +print(f"MicroPythonOS {BuildInfo.version.release} running lib/mpos/main.py") board = detect_board() -print(f"Initializing {board} hardware") +print(f"Detected {board} system, importing mpos.board.{board}") DeviceInfo.set_hardware_id(board) __import__(f"mpos.board.{board}") @@ -135,7 +138,7 @@ try: except Exception as e: print(f"Couldn't start WifiService.auto_connect thread because: {e}") -# Start launcher so it's always at bottom of stack +# Start launcher first so it's always at bottom of stack launcher_app = AppManager.get_launcher() started_launcher = AppManager.start_app(launcher_app.fullname) # Then start auto_start_app if configured diff --git a/internal_filesystem/main.py b/internal_filesystem/main.py index e768d64d..935d0476 100644 --- a/internal_filesystem/main.py +++ b/internal_filesystem/main.py @@ -5,6 +5,5 @@ import sys sys.path.insert(0, 'lib') -print("Passing execution over to mpos.main") +print(f"Minimal main.py importing mpos.main with sys.path: {sys.path}") import mpos.main -