title: Weird issue with platypus (makes .app packages from scripts)
body: <p>I wrote myself a small Python script that I want to use to automatically do things with certain types of files; as such, I want to create an <code>.app</code> out of it so that I can set certain files to be opened with it automatically.</p>
  
  <p>So I looked around and found Platypus which seems to do what I need. </p>
  
  <p>However, weirdly it doesn't work. Specifically, it does not seem to be finding the right python interpreter. I set it up as follows:</p>
  
  <p><img src="https://i.stack.imgur.com/UUqJi.png" alt="enter image description here"></p>
  
  <p>I.e., the script type is <code>env</code> so it should just read the top line of the file like the shell does.</p>
  
  <p>In <code>magic.py</code>, the top line is <code>#!/usr/bin/env python2.7</code>. </p>
  
  <p>Now, when I run the shell script on the command line (that is, <code>~/devel/magic.py whatever</code>), everything works fine. But when I run the app, it errors with:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/jan/Dropbox/devel/Magic.app/Contents/Resources/script", line 8, in &lt;module&gt;
      from bencode import *
  ImportError: No module named bencode
  </code></pre>
  
  <p>The same import works just fine when running it from the command line, so I'm thinking it's using the wrong interpreter somehow. How can I fix or debug this?</p>