Quantcast
Channel: Should I put #! (shebang) in Python scripts, and what form should it take? - Stack Overflow
Viewing all articles
Browse latest Browse all 17

Should I put #! (shebang) in Python scripts, and what form should it take?

$
0
0

Should I put the shebang in my Python scripts? In what form?

#!/usr/bin/env python 

or

#!/usr/local/bin/python

Are these equally portable? Which form is used most?

Note: the tornado project uses the shebang. On the other hand the Django project doesn't.


Viewing all articles
Browse latest Browse all 17

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>