-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Respect Shebang #152
Comments
I'll take a look at this. I know #5 references virtualenv at one point. I use |
Notice that "Blanks after #! /usr/bin/env python #! /bin/python Additionally, command line flags might be given to the interpreter: Some interesting cases are these: #!/bin/python --version #!/bin/python -- #!/bin/python - #!/bin/python -3 #!/bin/python -c #!/bin/python -O #!/bin/python -OO #!/bin/python -Q new Also there are multiline shebangs. To start python from a polyglot bash/python file: #!/bin/bash
"exec" "python" "$0"
print "Hello World" |
I vote the very last one just gets handled by the bash handler. Why would anyone use that one? |
@rgbkrk polyglot files can exploit features of both programming languages. For example bash knows |
Close #152 - Add support for reading shebang
atom-script always starts my Python scripts with the default python, even if i declare a shebang.
and
yield
Notice that it is common for python scripts to be only compatible with one major version, so a (global) configuration would not solve the issue.
The text was updated successfully, but these errors were encountered: