07-23-2018, 06:14 PM
(07-23-2018, 08:29 AM)rich2005 Wrote:#! /usr/bin/python works just as well in Linux. Using env is a leftover of ancient times when python wasn't always in /usr/bin, and env would scan the PATH for it.Quote:What did you mean in your earlier post to add ‘#!/usr/bin/env python’ at the beginning? Do you mean at the beginning of your .py file or at the beginning of your file path? Sorry for all the questions
It is the "shebang" which tells
quote "#!/usr/bin/env python – Execute using Python by looking up the path to the Python interpreter automatically via env"