idf.py: add python path to flash instructions

Closes https://github.com/espressif/esptool/issues/449
This commit is contained in:
Sergei Silnov 2019-11-05 11:07:03 +01:00
parent e6ad82a0b2
commit ca79a5ecb3

View file

@ -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,