State Scripts

Does mender state script execute in python 2 or python 3?

My script executes in python3 but not in python How should I resolve this ?

Which interpreter is used to run the script depends on the first line in the file. Set the first line to




to specify which one to run with. This is not specific to Mender. It’s the standard UNIX way of doing things.

thanks @kacf