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 fc13fba commit 1a47c5fCopy full SHA for 1a47c5f
main.c
@@ -68,6 +68,8 @@
68
#include "shared-bindings/microcontroller/Processor.h"
69
#include "shared-bindings/supervisor/Runtime.h"
70
71
+#include "shared-bindings/os/__init__.h"
72
+
73
#if CIRCUITPY_ALARM
74
#include "shared-bindings/alarm/__init__.h"
75
#endif
@@ -408,6 +410,9 @@ STATIC bool run_code_py(safe_mode_t safe_mode, bool *simulate_reset) {
408
410
usb_setup_with_vm();
409
411
412
413
+ // Make sure we are in the root directory before looking at files.
414
+ common_hal_os_chdir("/");
415
416
// Check if a different run file has been allocated
417
if (next_code_allocation) {
418
next_code_info_t *info = ((next_code_info_t *)next_code_allocation->ptr);
0 commit comments