Uruchom skrypt Python w Raspberry Pi Bootup

sudo nano /etc/rc.local

# add command which you want to execute after bootup at the end of the file
# add "&" at the end if you are using an infinite looping code so that it wont block other commands
sudo python /home/pi/sample.py &
sudo http-server /home/pi/myFolder

# add exit 0 at the end 
exit 0
Keerthan Chand