I have a python program that can be run both: with python or python3:
# that
python app.py
# or that
python3 app.py
How to detect inside app.py program which command was used?
I tried to use sys.argv, but it doesn't contains such info.
Any ideas?
sys.version_infoat the top of the file?