This method will also work with any program, including those that require access to xorg
/etc/xdg/lxsession/LXDE-pi/autostart
@/usr/bin/python3 /home/pi/example.py
sudo reboot
This method will also work with any program, including those that require access to xorg
/etc/xdg/lxsession/LXDE-pi/autostart
@/usr/bin/python3 /home/pi/example.py
sudo reboot