diff --git a/setup.sh b/setup.sh index 0227df5..ae19b2f 100755 --- a/setup.sh +++ b/setup.sh @@ -72,7 +72,7 @@ else fi # Create and activate Python virtual environment -cd "$PROJECT_DIR" +cd "$PROJECT_DIR/" chmod ugo+x ./raspi-blinka.py ./temp-calc.py python3 -m venv . --system-site-packages echo -e "$line\nVirtual environment created.\n$line\n" @@ -83,7 +83,7 @@ echo -e "$line\nInstalling dependencies...\n$line\n" pip3 install --upgrade setuptools click adafruit-python-shell adafruit-circuitpython-dht echo -e "$line\nSetting up raspi-blinka...\n$line\n" -python3 raspi-blinka.py +sudo python3 raspi-blinka.py echo -e "\n\n\n$line$line$line\nSetup completed.\nExecute the command 'python3 temp-calc.py' to calculate\nthe temperature.\n# DESIGNED AND ENGINEERED BY KSHITIJ.\n# END OF SCRIPT\n$line$line$line\n\n\n"