From ca79a5ecb36c3a0fd98443013d5e7ddd4a9442a3 Mon Sep 17 00:00:00 2001 From: Sergei Silnov Date: Tue, 5 Nov 2019 11:07:03 +0100 Subject: [PATCH] idf.py: add python path to flash instructions Closes https://github.com/espressif/esptool/issues/449 --- tools/idf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/idf.py b/tools/idf.py index 3cba357a5..eeb51cccf 100755 --- a/tools/idf.py +++ b/tools/idf.py @@ -448,7 +448,8 @@ def init_cli(verbose_output=None): for o, f in flash_items: cmd += o + " " + flasher_path(f) + " " - print("%s -p %s -b %s --before %s --after %s write_flash %s" % ( + print("%s %s -p %s -b %s --before %s --after %s write_flash %s" % ( + PYTHON, _safe_relpath("%s/components/esptool_py/esptool/esptool.py" % os.environ["IDF_PATH"]), args.port or "(PORT)", args.baud,