We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7d2f1 commit 146e883Copy full SHA for 146e883
main.c
@@ -333,7 +333,7 @@ STATIC bool run_code_py(safe_mode_t safe_mode) {
333
// Collects stickiness bits that apply in the current situation.
334
uint8_t next_code_stickiness_situation = SUPERVISOR_NEXT_CODE_OPT_NEWLY_SET;
335
336
- if (safe_mode == NO_SAFE_MODE) {
+ if (safe_mode == NO_SAFE_MODE && pyexec_mode_kind == PYEXEC_MODE_FRIENDLY_REPL) {
337
static const char *const supported_filenames[] = STRING_LIST(
338
"code.txt", "code.py", "main.py", "main.txt");
339
#if CIRCUITPY_FULL_BUILD
0 commit comments