tools/build_mocks: adapt to micropython -> embed rename

This commit is contained in:
Jan Pochyla 2017-07-28 16:36:14 +02:00
parent 803e39c2a8
commit bab1303b1b
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ def build_module(mod_file, dest):
.split('.')[0] \
.split('-')[0] \
.replace('mod', '')
mod_desc = mod_file.replace('../micropython/extmod', 'extmod')
mod_desc = mod_file.replace('../embed/extmod', 'extmod')
for l in open(mod_file):
if not l.startswith(COMMENT_PREFIX):
@ -109,4 +109,4 @@ def clear_directory(top_dir):
if __name__ == '__main__':
clear_directory('../mocks/generated')
build_directory('../micropython/extmod', '../mocks/generated')
build_directory('../embed/extmod', '../mocks/generated')