I'm running a Python script that currently uses an os.system [os.system("randomplay --basedir=/home/pi/music"] to launch an outside player. The script simply stops at that point to do the other job (randomplay).
Is there a better command which will launch the outside job, then continue on running the python script it was launched from while the other application is running?
Edit, I can add a & to the executed line, but then I'm not going to have access to the controls of the player.
Thanks in advance