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>
This commit is contained in:
Angus Gratton 2023-08-09 18:16:39 +10:00 committed by Damien George
parent 861fbf6ab5
commit cec3ff5526
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []