I have a UNIX script which is used to initialize the environment and properties of the project. It uses python. I had to refer the path. This will be used as a common file and used across multiple developers. Few of the machines uses Python 1.x and 2.x. Few others uses only Python 3.x.
So /usr/bin/python
works for the machines run Python 1.x but it fails in machines running python 3.x. I have to explicitly change it to /usr/bin/python3
to make it work.
How can I handle the situation to make the script run independent of the python version installed.