fix path
This commit is contained in:
parent
9fb73c16c3
commit
deb87fab6d
2 changed files with 5 additions and 3 deletions
|
@ -17,7 +17,7 @@ system_name = platform.system()
|
||||||
is_linux = system_name == 'Linux' or system_name == 'Darwin'
|
is_linux = system_name == 'Linux' or system_name == 'Darwin'
|
||||||
firmware_path = sys.path[0] / Path('firmware')
|
firmware_path = sys.path[0] / Path('firmware')
|
||||||
pio_build_path = Path('.pio/build/esp32doit-devkit-v1-serial/')
|
pio_build_path = Path('.pio/build/esp32doit-devkit-v1-serial/')
|
||||||
|
runtime_path = Path(os.path.dirname(sys.executable))
|
||||||
|
|
||||||
def has_pio():
|
def has_pio():
|
||||||
if is_linux:
|
if is_linux:
|
||||||
|
@ -119,6 +119,8 @@ if __name__ == "__main__":
|
||||||
os.chdir(firmware_path)
|
os.chdir(firmware_path)
|
||||||
enable_build = is_source_project()
|
enable_build = is_source_project()
|
||||||
home_path = str(Path.home())
|
home_path = str(Path.home())
|
||||||
|
# Add runtime bin to path
|
||||||
|
os.environ['PATH'] = str(runtime_path) + os.pathsep + os.environ['PATH']
|
||||||
|
|
||||||
if is_linux:
|
if is_linux:
|
||||||
# Fix locale
|
# Fix locale
|
||||||
|
|
|
@ -5,8 +5,8 @@ sudo apt install cmake clang software-properties-common -y
|
||||||
|
|
||||||
|
|
||||||
echo -e "\n\nInstalling latest stable wireshark"
|
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-get update
|
||||||
sudo apt install wireshark -y
|
sudo apt install wireshark-dev -y
|
||||||
|
|
||||||
echo "Done! Run build.sh to build project"
|
echo "Done! Run build.sh to build project"
|
||||||
|
|
Loading…
Reference in a new issue