How to set auto play after boot up

How to set auto play after boot up i using raspberry pi 3

This can be done with autoexec.py. A search should get you some help for this

Sam

Thank you
i will try

i try code like this but not work

import xbmc
xbmc.executebuiltin(“PlayMedia(/home/osmc/Music)”)
xbmc.executebuiltin(“PlayerControl(repeatall)”)

to repeatall you need to create a playlist.

some thing like this

import xbmc
xbmc.executebuiltin(“PlayMedia(/home/osmc/.kodi/userdata/playlists/music/song1.m3u)”)