-def load_settings_toml(*, return_toml=False):
- """Load values from settings.toml into os.environ, so that os.getenv returns them."""
+def load_settings_toml():
+ """Load values from settings.toml into os.environ, so that os.getenv returns them.
+ Note: This does not work in MicroPython because of the tomllib module not being available.
+ """
+ try:
+ import tomllib
+ except ImportError:
+ import toml as tomllib
+