diff options
| author | Angus Gratton <angus@redyak.com.au> | 2023-08-09 18:16:39 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-08-16 16:13:01 +1000 |
| commit | cec3ff5526d1aa09b0eb86a371d7312ddb8a33b4 (patch) | |
| tree | 75ff643cc994ef01a474a62da665a71345209ad6 | |
| parent | 861fbf6ab5bb0c2a21a04a312453bb7adb92b8be (diff) | |
mpy-cross: Fix source file name in file-not-found error.
Found by Ruff with F821.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
| -rw-r--r-- | mpy-cross/mpy_cross/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpy-cross/mpy_cross/__init__.py b/mpy-cross/mpy_cross/__init__.py index 8eadbc835..5020033e8 100644 --- a/mpy-cross/mpy_cross/__init__.py +++ b/mpy-cross/mpy_cross/__init__.py @@ -100,7 +100,7 @@ def compile(src, dest=None, src_path=None, opt=None, march=None, mpy_cross=None, if not src: raise ValueError("src is required") if not os.path.exists(src): - raise CrossCompileError("Input .py file not found: {}.".format(src_py)) + raise CrossCompileError("Input .py file not found: {}.".format(src)) args = [] |
