From 8a9b820b20086f9704e645bf029e5860bbc812a0 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Mon, 7 Oct 2024 01:01:39 +0530 Subject: [PATCH] Running raspi-blinka.py as sudo --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"