All Questions
2 questions
4votes
2answers
426views
direct execution of python scripts
I have noticed that sometimes python scripts are not being started directly, ie /foo/bar.py, but rather from a shell script, which does nothing else than /usr/bin/python -O /foo/bar.py $@ One such ...
51votes
6answers
34kviews
How can I use environment variables in my shebang?
I have a Python script that need to be run with a particular python installation. Is there a way to craft a shebang so that it runs with $FOO/bar/MyCustomPython?