I am working with my Raspberry Pi 2 B+ and I am using Raspbian. I have a python script located at /home/pi/Desktop/control/gpio.py
When I type /home/pi/Desktop/control/gpio.py
into the command line, I get the message
bash: /home/pi/Desktop/control/gpio.py Permission denied
I have tried running sudo -s
before running that command also but that doesnt work. My python script is using the Rpi.GPIO
library.
If someone could please explain why I am getting this error it would be appreciated!