Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fleur
firmware
Commits
338132e5
Commit
338132e5
authored
Aug 21, 2019
by
Daniel Hoffend
Browse files
apped apps folder to search module search path
parent
cda91555
Changes
2
Hide whitespace changes
Inline
Side-by-side
pycardium/main.c
View file @
338132e5
...
...
@@ -45,6 +45,16 @@ int main(void)
mp_init
();
/* request by badge.team */
mp_obj_list_init
(
mp_sys_path
,
0
);
mp_obj_list_append
(
mp_sys_path
,
MP_ROM_QSTR
(
MP_QSTR_
));
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR__slash_lib
)
);
mp_obj_list_append
(
mp_sys_path
,
MP_OBJ_NEW_QSTR
(
MP_QSTR__slash_apps
)
);
if
(
cnt
>
0
)
{
pyexec_file_if_exists
(
script_name
);
}
...
...
pycardium/modules/qstrdefs.h
View file @
338132e5
...
...
@@ -119,6 +119,10 @@ Q(OUTPUT)
Q
(
PULL_UP
)
Q
(
PULL_DOWN
)
/* path */
Q
(
/
apps
)
Q
(
/
lib
)
/* personal_state */
Q
(
personal_state
)
Q
(
get
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment