Hallo again!
So, work is still in progress…
I wrote the skript and it works fine until I want to execute the command,
I use:
command = retroarch -L /opt/retropie/libretrocores/lr-pocketsnes/libretro.so /home/pi/RetroPie/roms/snes/nameofmyrom.smc
subprocess.check_call(command, shell=True)

But it returns:
“returned non-zero exit status 2”

I tried some variations but I dont get it :(

Any ideas about that?