Shebang Line and Python Interpreter

Hi all,

I've installed the community version PyCharm 3.4. I've been trying out some small test scripts in the editor which does not have the shebang line automatically inserted at the top ie #!/usr/bin/env python, with no issues so far. For portability I've decided to add the shebang line into the python file template so that all of my new code starts with this inserted automatically. I am curious, though, as to whether this affects how the Python Interpreter setting functions in PyCharm. Will the shebang line be in conflict with the Interpreter (and vise versa) as to which Python version the code will use?


1 comment
Comment actions Permalink
No, it does not really affect PyCharm. The interpreter selected in Project Options is what's used to run / debug anything from within PyCharm.

Please sign in to leave a comment.