summaryrefslogtreecommitdiff
path: root/tools/makemanifest.py
diff options
context:
space:
mode:
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>2019-11-11 15:46:11 +0200
committerDamien George <damien.p.george@gmail.com>2019-11-13 13:44:19 +1100
commitb2dd443d927ecd739111cdb0a0e94fe89c848312 (patch)
treeab3dbcce02e660b4132df986eb0c3a06d8246e89 /tools/makemanifest.py
parentd667bc642ffb9603e85f50be73a32871427c5fa6 (diff)
tools/makemanifest.py: Use sys.executable when invoking Python scripts.
So the version of Python used to run makemanifest.py is also used for the sub-scripts.
Diffstat (limited to 'tools/makemanifest.py')
-rw-r--r--tools/makemanifest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/makemanifest.py b/tools/makemanifest.py
index 3a5e230d8..90cec2bb4 100644
--- a/tools/makemanifest.py
+++ b/tools/makemanifest.py
@@ -270,13 +270,13 @@ def main():
return
# Freeze paths as strings
- res, output_str = system([MAKE_FROZEN] + str_paths)
+ res, output_str = system([sys.executable, MAKE_FROZEN] + str_paths)
if res != 0:
print('error freezing strings {}: {}'.format(str_paths, output_str))
sys.exit(1)
# Freeze .mpy files
- res, output_mpy = system([MPY_TOOL, '-f', '-q', args.build_dir + '/genhdr/qstrdefs.preprocessed.h'] + mpy_files)
+ res, output_mpy = system([sys.executable, MPY_TOOL, '-f', '-q', args.build_dir + '/genhdr/qstrdefs.preprocessed.h'] + mpy_files)
if res != 0:
print('error freezing mpy {}: {}'.format(mpy_files, output_mpy))
sys.exit(1)