summaryrefslogtreecommitdiffstatshomepage
path: root/tools/makemanifest.py
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-09-09 18:12:55 +1000
committerJim Mussared <jim.mussared@gmail.com>2022-09-09 18:12:55 +1000
commit4903e48e340bd9741577f30cacb31605cc70cf20 (patch)
tree961ad320d5679c378231b4ab9d81a8df14477719 /tools/makemanifest.py
parent1d4228ccc1f4b6760007a8370d75a3ae3339c801 (diff)
downloadmicropython-4903e48e340bd9741577f30cacb31605cc70cf20.tar.gz
micropython-4903e48e340bd9741577f30cacb31605cc70cf20.zip
tools/makemanifest.py: Force the repo version of the mpy_cross package.
In case the version from pypi is installed or some other version is available in sys.path, prepend `$(TOP)/mpy-cross` to sys.path instead. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tools/makemanifest.py')
-rw-r--r--tools/makemanifest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/makemanifest.py b/tools/makemanifest.py
index d059d4a266..9dd8815aac 100644
--- a/tools/makemanifest.py
+++ b/tools/makemanifest.py
@@ -29,7 +29,8 @@ import sys
import os
import subprocess
-sys.path.append(os.path.join(os.path.dirname(__file__), "../mpy-cross"))
+# Always use the mpy-cross from this repo.
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../mpy-cross"))
import mpy_cross
import manifestfile