jczic / ESP32-MPY-Jama

v1.2 - UI tool for manage Espressif ESP32 microcontrollers with embedded MicroPython for MacOS, Windows and Linux: mini IDE, files manager, REPL, real time dashboards (sys/net), advanced features (gpio/mp3/leds/...)
https://github.com/jczic/ESP32-MPY-Jama
MIT License
424 stars 25 forks source link

Several Linux changes #15

Closed happenpappen closed 1 year ago

happenpappen commented 1 year ago

Updated Linux installation/build instructions in README.md and added a small script to create the binary. The Linux version will now search for "esptool" as well as for "esptool.py" when flashing the firmware.

jczic commented 1 year ago

Thank you very much @happenpappen ! It's really cool 👍🏻 :) Just, in "create_binary.sh", it's necessarily for python 3.10 (hardcoded).

happenpappen commented 1 year ago

Yes, i'm not really happy with the hardcoded path and looking for a way to find this directory by other means.

biemster commented 1 year ago

python -m site --user-site doens't work?

happenpappen commented 1 year ago

@biemster : python -m site --user-site gives:

$HOME/.local/lib/python3.10/site-packages

but i need:

$VENVDIR/lib/python3.10/site-packages

in the script. Don't know if there is a python way to get this?

biemster commented 1 year ago

Hm, I was mistaken here indeed.. Then I don't really know any by heart, although a hacky one would of course be $(python -m site | grep venv).