On mer, 2009-01-21 at 07:59 -0800, [email protected] wrote:
> 
> Yes, doing LD_LIBRARY_PATH works... along with doing MEIPASS2=./lib.
> But that defeats much of the purpose of having a compiled binary in
> the first place, if I need to write a wrapper script to launch it and
> set proper env variables.
> 
> I have to make my iu.py hack a little more extensible, and then I
> should be all set to work with any version of pyinstaller.

But the PyInstaller bootloader already sets LD_LIBRARY_PATH to the
executable's directory. See source/linux/main.c, line 112. What you want
is to change that code so that it looks within "Lib" as well. 

Something like (completely untested):

            /* now LD_LIBRARY_PATH */
            strcpy(ldlib_envvar, "LD_LIBRARY_PATH=");
            strcat(ldlib_envvar, workpath);
            strcat(ldlib_envvar, ":");
            strcat(ldlib_envvar, workpath);
            strcat(ldlib_envvar, "/Lib");

-- 
Giovanni Bajo
Develer S.r.l.
http://www.develer.com



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to