Originally reported by: ryotakatsuki (Bitbucket: ryotakatsuki, GitHub: ryotakatsuki)
I am using a shell script wrapper to substitute my "python" binary, define some environment variables and call the real binary afterwards.
This results on the shell script being used as the shebang, which does not work in some Unix OS, specifically on OS X.
The solution would be to use "#!/usr/bin/env path/to/script.sh" as the shebang. Looking into the code I saw a fix is already applied for Jython (http://bugs.jython.org/issue1112) so I simply extended it.
Originally reported by: ryotakatsuki (Bitbucket: ryotakatsuki, GitHub: ryotakatsuki)
I am using a shell script wrapper to substitute my "python" binary, define some environment variables and call the real binary afterwards.
This results on the shell script being used as the shebang, which does not work in some Unix OS, specifically on OS X.
The solution would be to use "#!/usr/bin/env path/to/script.sh" as the shebang. Looking into the code I saw a fix is already applied for Jython (http://bugs.jython.org/issue1112) so I simply extended it.