File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 41
41
//| """functions that an OS normally provides
42
42
//|
43
43
//| |see_cpython_module| :mod:`cpython:os`.
44
+ //|
45
+ //| .. jinja
44
46
//| """
45
47
//|
46
48
//| import typing
@@ -88,7 +90,24 @@ MP_DEFINE_CONST_FUN_OBJ_0(os_getcwd_obj, os_getcwd);
88
90
//| def getenv(key: str, default: Optional[str] = None) -> Optional[str]:
89
91
//| """Get the environment variable value for the given key or return ``default``.
90
92
//|
91
- //| This may load values from disk so cache the result instead of calling this often."""
93
+ //| This may load values from disk so cache the result instead of calling this often.
94
+ //|
95
+ //| On boards that do not support ``settings.toml`` reading in the core, this function will raise NotImplementedError.
96
+ //|
97
+ //| .. raw:: html
98
+ //|
99
+ //| <p>
100
+ //| <details>
101
+ //| <summary>Available on these boards</summary>
102
+ //| <ul>
103
+ //| {% for board in support_matrix_reverse["os.getenv"] %}
104
+ //| <li> {{ board }}
105
+ //| {% endfor %}
106
+ //| </ul>
107
+ //| </details>
108
+ //| </p>
109
+ //|
110
+ //| """
92
111
//| ...
93
112
//|
94
113
STATIC mp_obj_t os_getenv (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
You can’t perform that action at this time.
0 commit comments