Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
9b4c0138
Commit
9b4c0138
authored
May 23, 2016
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/mpy-tool.py
View file @
9b4c0138
...
...
@@ -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
:]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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