On 20/01/2007 2.22, Russell E Owen wrote: > The code works fine for py2app and py2exe, relying on the > useful attribute that __file__ is correct for modules. > Also, sys.executable is absolute for py2app (I don't know about py2exe). > pyinstaller has neither and I'm stumped. > > Any suggestions? > > Or...any idea how hard it would be to modify pyinstaller to provide > an absolute sys.executable or usable module __file__ attributes? I've > not looked at the source code yet.
You are raising good points here. About sys.executable, it should be pretty easy to fix it. Have a look at source/linux/main.c, you should find a good place to drop your fix in there. About __file__, why do you consider it "dead wrong"? What's the current contents of __file__ for you, and what would you like it to be? -- Giovanni Bajo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PyInstaller" 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/PyInstaller?hl=en -~----------~----~----~----~------~----~------~--~---
