(Oct-18-2016, 08:39 PM)nilamo Wrote: I just added "#! /usr/bin/python -v" to the top of a random python file, and ran it using "test.py" from the command line, not giving any indication (aside from file extension) that it was a python file. I also DID NOT mark the file executable.Do you have file extension .py associated with the python interpreter? Mine does this also but it is not because there is a shebang in the code...but because of file associations. A sure way to confirm this is to remove the file extension and rerun.
And I saw a very large amount of verbose info that's normally never there.
So either windows is parsing shebangs, or python is :p
Recommended Tutorials: