title: How to change the app name in OSX menubar in a pure-Python application bundle?
body: <p>I am trying to create a pure-Python application bundle for a wxPython app. I created the .app directory with the files described in Apple docs, with an Info.plist file etc. The only difference between a "normal" app and this bundle is that the entry point (CFBundleExecutable) is a script which starts with the following line:</p>
  
  <pre><code>#!/usr/bin/env python2.5
  </code></pre>
  
  <p>Everything works fine except that the application name in the OSX menubar is still "Python" although I have set the CFBundleName in Info.plist (I copied the result of py2app, actually). <a href="https://github.com/gyim/stupidgit/blob/435a6a8d55a7c95ca174a3b769a27b2ef842f74d/setup/osx/Info.plist" rel="nofollow noreferrer">The full Info.plist can be viewed here</a>.</p>
  
  <p>How can I change this? I have read everywhere that the menubar name is only determined by CFBundleName. How is it possible that the Python interpreter can change this in runtime?</p>
  
  <p><strong>Note:</strong> I was using py2app before, but the result was too large (>50 MB instead of the current 100KB) and it was not even portable between Leopard and Snow Leopard... so it  seems to be much easier to create a pure-Python app bundle "by hand" than transforming the output of py2app.</p>