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

So that it can be correctly stat'd when looking for frozen files.
pull/2099/head
Damien George 2016-05-23 12:46:02 +01:00
rodzic 274952a117
commit 9b4c013823
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -502,7 +502,7 @@ def freeze_mpy(qcfgs, base_qstrs, raw_codes):
print()
print('const char mp_frozen_mpy_names[] = {')
for rc in raw_codes:
module_name = rc.source_file.str[:-len(".py")]
module_name = rc.source_file.str
slash = module_name.rfind('/')
if slash != -1:
module_name = module_name[slash + 1:]