On Wed, Mar 5, 2008 at 10:22 AM, Nathan <[EMAIL PROTECTED]> wrote: > With the help of people on the twisted list, I was able to isolate > what is happening, but I still don't know how to fix it. What is > happening is simple: The .app is seeing a minimal Twisted 2.4 > installation that ships with Leopard instead of the custom (full) > Twisted 2.5 installation that I'm using and that py2app successfully > puts into MyApp.app/Contents/Resources/lib/python2.5/site-packages.zip. > > So I just need to tell my .app somehow to use the inside-the-app > version of twisted and NOT the one out on the system...somehow...
Aha!! 1) sys.path allows zip files (so that's how that works!) 2) sys.path allows relative paths 3) sys.path has the site-packages.zip entry near the end of sys.path Adding the following line to the top of my script WORKED! sys.path.insert(0,'../Resources/lib/python2.5/site-packages.zip') I also added that "if False:..." block that Alex suggested to get the audio drivers included. Thanks for all the help, everyone! ~ Nathan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
