File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,9 @@ static void start_mp(safe_mode_t safe_mode) {
203
203
mp_obj_list_append (mp_sys_path , MP_OBJ_NEW_QSTR (MP_QSTR__slash_lib ));
204
204
205
205
mp_obj_list_init ((mp_obj_list_t * )mp_sys_argv , 0 );
206
+
207
+ // Always return to root
208
+ common_hal_os_chdir ("/" );
206
209
}
207
210
208
211
static void stop_mp (void ) {
@@ -457,8 +460,6 @@ static bool __attribute__((noinline)) run_code_py(safe_mode_t safe_mode, bool *s
457
460
usb_setup_with_vm ();
458
461
#endif
459
462
460
- // Always return to root before trying to run files.
461
- common_hal_os_chdir ("/" );
462
463
// Check if a different run file has been allocated
463
464
if (next_code_configuration != NULL ) {
464
465
next_code_configuration -> options &= ~SUPERVISOR_NEXT_CODE_OPT_NEWLY_SET ;
You can’t perform that action at this time.
0 commit comments