I have a robot and it is set up in a way to take commands from the front end of the website to then run a command on the robot. For example
if command == 'CF':
os.system('aplay /home/pi/sound/wavycf.wav')
I need somthing that will swap two files /images/hud.png
and images/special/hud.png
to each others directories....I hope that makes sense