I bought and assembled the Pi Supply Switch and placed the neccesary files / codes onto the RPi3.
The on and off buttons work, but i don't need those. The soft-off button doesn't do anything, it doesn't turn the pi on or off.
From what i understand, the Pi Supply Switch should be able to turn the RPi3 ON and OFF with ONE button, am i correct? I find this confusing because i'm not seeing any references in the code that would turn the RPi3 ON.
Besides that, the RPi3 shuts down after a few minutes. Usually this means that pin 7 and 8 aren't connected but i'm fairly sure it's all connected like it should.
Any help is greatly appreciated.
EDIT: I also noticed this error on starting my RPi : "Failed to start rc.local compatibility", that might be the issue.
EDIT 2 : I should probably mention, i'm using a RPi 3B running RetroPie.
softshut.py :

rc.local :

Setup :
