Aug-14-2017, 02:42 PM
(Aug-13-2017, 08:51 PM)sparkz_alot Wrote: Another way, I believe, is to add a shebang line at the beginning of the script. Then double clicking the "my_file.py" in Windows or typing "./my_file.py" in Linux with run the correct version.
Double clicking in windows works with file associations and the .py extension. The shebang, in windows, is only used by the windows-specific python launcher, to switch to a different version of python if windows tries to use the wrong one. It won't start python if windows doesn't already know that it should be starting python.