Commit 9b4c0138 authored by Damien George's avatar Damien George
Browse files

tools/mpy-tool.py: Include .py extension in frozen filename.

So that it can be correctly stat'd when looking for frozen files.
parent 274952a1
...@@ -502,7 +502,7 @@ def freeze_mpy(qcfgs, base_qstrs, raw_codes): ...@@ -502,7 +502,7 @@ def freeze_mpy(qcfgs, base_qstrs, raw_codes):
print() print()
print('const char mp_frozen_mpy_names[] = {') print('const char mp_frozen_mpy_names[] = {')
for rc in raw_codes: for rc in raw_codes:
module_name = rc.source_file.str[:-len(".py")] module_name = rc.source_file.str
slash = module_name.rfind('/') slash = module_name.rfind('/')
if slash != -1: if slash != -1:
module_name = module_name[slash + 1:] module_name = module_name[slash + 1:]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment