title: Shebang for compiled Python code
body: <p>I used to add shebang line at top of Python script as,</p>
  
  <pre><code>#!/usr/bin/python
  ...
  </code></pre>
  
  <p>And I can execute the my.py file by,</p>
  
  <pre><code>chmod a+r my.py
  ./my.py
  </code></pre>
  
  <p>But after compiled to bytecode, the script can only be executed by python and the shebang does not work anymore.</p>
  
  <pre><code>python my.pyc
  </code></pre>
  
  <p>Is there anyway to make shebang workable to compiled python script?</p>
  
  <pre><code>./my.pyc
  </code></pre>