You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Simplify imports
This commit is contained in:
@@ -43,6 +43,7 @@ from .ui import focus_direction
|
||||
|
||||
# Utility modules
|
||||
from . import apps
|
||||
from . import bootloader
|
||||
from . import ui
|
||||
from . import config
|
||||
from . import net
|
||||
@@ -54,13 +55,6 @@ from . import battery_voltage
|
||||
from . import audio
|
||||
from . import hardware
|
||||
|
||||
# Lazy import to avoid circular dependencies
|
||||
def __getattr__(name):
|
||||
if name == 'bootloader':
|
||||
from . import bootloader
|
||||
return bootloader
|
||||
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
|
||||
|
||||
__all__ = [
|
||||
# Core framework
|
||||
"App",
|
||||
|
||||
Reference in New Issue
Block a user