mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 10:46:31 +00:00
Berry remove imports from globals (#23429)
This commit is contained in:
parent
e86af24056
commit
1306f7a8c7
@ -32,7 +32,7 @@ const char be_berry_init_code[] =
|
|||||||
"import global "
|
"import global "
|
||||||
#ifdef USE_BERRY_PYTHON_COMPAT
|
#ifdef USE_BERRY_PYTHON_COMPAT
|
||||||
// enable python syntax compatibility mode
|
// enable python syntax compatibility mode
|
||||||
"import python_compat "
|
"do import python_compat end " // don't keep 'python_compat' in global namespace
|
||||||
#endif
|
#endif
|
||||||
"import cb "
|
"import cb "
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ const char be_berry_init_code[] =
|
|||||||
|
|
||||||
#ifdef USE_AUTOCONF
|
#ifdef USE_AUTOCONF
|
||||||
// autoconf
|
// autoconf
|
||||||
"import autoconf "
|
"do import autoconf end "
|
||||||
#endif // USE_AUTOCONF
|
#endif // USE_AUTOCONF
|
||||||
|
|
||||||
#ifdef USE_LVGL
|
#ifdef USE_LVGL
|
||||||
@ -80,11 +80,7 @@ const char be_berry_init_code[] =
|
|||||||
"import light "
|
"import light "
|
||||||
#endif // USE_LIGHT
|
#endif // USE_LIGHT
|
||||||
|
|
||||||
#if defined(USE_EMULATION) && defined(USE_EMULATION_HUE)
|
"do import tapp end " // we don't need to keep `tapp` in the global namespace
|
||||||
"import hue_bridge "
|
|
||||||
#endif
|
|
||||||
|
|
||||||
"import tapp "
|
|
||||||
|
|
||||||
#ifdef USE_BERRY_DEBUG
|
#ifdef USE_BERRY_DEBUG
|
||||||
"import debug "
|
"import debug "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user