I have created a simple python script for the pi camera which works when run as is.
the file is located in ~/Destop/python
cameratest.py
import picamera
import time
camera = picamera.Picamera()
camera.capture('example.jpg')
I would like this to launch at startup/login, so I have done the following:
sudo nano /etc/rc.local
where I added the following line of code before exit 0
python /home/me/Desktop/python/cameratest.py &
i then run reboot
No picture is taken and among the boot strings an error rc.local.... 'directory does not exist' pops up. Can anyone advise me how to proceed?