Tagged Questions
2
votes
2answers
203 views
Running python script from terminal without .py extension
I want to call a python script script.py from the terminal by simply typing script. Is this possible? If so, how?
I know I can avoid typing python script.py by adding #!/usr/bin/env python to the top ...
0
votes
0answers
113 views
python error using an executable with Z shell
I'm getting this error from the Unix Z shell (I'm on Mac):
python: posix_spawn: /System/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python: No such file or ...
7
votes
5answers
622 views
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?