From 9b4c013823fb04e31412a20b4d53a397be912625 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 23 May 2016 12:46:02 +0100 Subject: [PATCH] tools/mpy-tool.py: Include .py extension in frozen filename. So that it can be correctly stat'd when looking for frozen files. --- tools/mpy-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mpy-tool.py b/tools/mpy-tool.py index a1cc1f0e06..381b3c8149 100755 --- a/tools/mpy-tool.py +++ b/tools/mpy-tool.py @@ -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:]