hello ! why keil can't execute python script on before build/rebuild user command , he can only execute batch file
IS that the complete message?
How, exactly, are you 'adding a python script to "Before Build/Rebuild"' ?
Show exactly what you have entered in the box.
Again: remember that we don't have access to your computer; we can't see this stuff - so it's up to you to provide complete information!