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>
pull/12197/head
Angus Gratton 2023-08-09 18:16:39 +10:00 zatwierdzone przez Damien George
rodzic 861fbf6ab5
commit cec3ff5526
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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