diff --git a/firmware.py b/firmware.py index 3a637bb..93f5daa 100755 --- a/firmware.py +++ b/firmware.py @@ -17,7 +17,7 @@ system_name = platform.system() is_linux = system_name == 'Linux' or system_name == 'Darwin' firmware_path = sys.path[0] / Path('firmware') pio_build_path = Path('.pio/build/esp32doit-devkit-v1-serial/') - +runtime_path = Path(os.path.dirname(sys.executable)) def has_pio(): if is_linux: @@ -119,6 +119,8 @@ if __name__ == "__main__": os.chdir(firmware_path) enable_build = is_source_project() home_path = str(Path.home()) + # Add runtime bin to path + os.environ['PATH'] = str(runtime_path) + os.pathsep + os.environ['PATH'] if is_linux: # Fix locale diff --git a/requirements.sh b/requirements.sh index 20f03cc..dde8cbd 100755 --- a/requirements.sh +++ b/requirements.sh @@ -5,8 +5,8 @@ sudo apt install cmake clang software-properties-common -y echo -e "\n\nInstalling latest stable wireshark" -sudo add-apt-repository --yes ppa:wireshark-dev/stable +sudo add-apt-repository --y ppa:wireshark-dev/stable sudo apt-get update -sudo apt install wireshark -y +sudo apt install wireshark-dev -y echo "Done! Run build.sh to build project"