title: how do I use py2app?
body: <p>Ok - here goes. I am trying to learn how to use py2app, so I created a simple python file; just hello_world.py</p>
  
  <pre><code>#! /usr/bin/env python
  def main():
  print "Hello"
  
  if __name__=="__main__":
      main()
  </code></pre>
  
  <p>I followed a tutorial and did the following:</p>
  
  <pre><code>py2applet --make-setup hello.py
  python setup.py py2app -A
  </code></pre>
  
  <p>This created two sub-directories (build and dist), within dist there was a file called hello.app. I attempted to launch it through the GUI but it launched for less than a second and then disappeared. I then went to the CL but simply trying to run it didn't work so I used: </p>
  
  <pre><code>python hello.app
  </code></pre>
  
  <p>with the following error: </p>
  
  <pre><code>/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python: can't find '__main__.py' in 'hello.app'
  </code></pre>
  
  <p>I've spent all day googling but can't find any tutorials or guides etc. I'm really stuck :-(</p>
  
  <p>I don't know if this helps but this is what is in the setup.py</p>
  
  <pre><code>"""
  This is a setup.py script generated by py2applet
  
  Usage:
      python setup.py py2app
  """
  
  from setuptools import setup
  
  APP = ['hello.py']
  DATA_FILES = []
  OPTIONS = {'argv_emulation': True}
  
  setup(
      app=APP,
      data_files=DATA_FILES,
      options={'py2app': OPTIONS},
      setup_requires=['py2app'],
  )
  </code></pre>