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 4215648 commit 6ba6857Copy full SHA for 6ba6857
unix/main.c
@@ -608,6 +608,15 @@ MP_NOINLINE int main_(int argc, char **argv) {
608
path_items[0] = MP_OBJ_NEW_QSTR(qstr_from_strn(basedir, p - basedir));
609
free(pathbuf);
610
611
+ mp_obj_list_get(mp_sys_path, &path_num, &path_items);
612
+ for (mp_uint_t i = 0; i < path_num; i++) {
613
+ if (MP_OBJ_IS_QSTR(path_items[i])) {
614
+ mp_printf(&mp_plat_print, "path %d %q\n", i, MP_OBJ_QSTR_VALUE(path_items[i]));
615
+ } else if (MP_OBJ_IS_TYPE(path_items[i], &mp_type_str)) {
616
+ mp_printf(&mp_plat_print, "path %d %s\n", i, mp_obj_str_get_str(path_items[i]));
617
+ }
618
619
+
620
set_sys_argv(argv, argc, a);
621
ret = do_file(argv[a]);
622
break;
0 commit comments