I am running a python script named myscript.py on ubuntu machine. I usually use python command to run python scripts as below.
python main.py
Recently, I downloaded a python script from a Github repository ( if need to look into the repository can find it at https://github.com/gsrivas4/mnist-gan) which asks to run script using './' as below.
./main.py
Running python scripts second way is new to me. I am confused about when can we use './' to run scripts and is this method to run scripts used for other languages as well. Usually, I would expect name of binary such as python which will start a process before I add the name of script. This script will be fed to the process. Also, I want to understand what is the meaning of './' when we run scripts. I feel this is trivial question, but could not find much help online.
I also tried making one of my python file executable and then ran it. However, running it using ./ gave me errors for any python library import commands.