> PyInstaller does set LD_LIBRARY_PATH to the directory where it's running
> from (in one-dir mode). Try printing the contents of that environment
> variable at the beginning of the program, before importing GTK.
The following example shows what I mean:
san...@bluff:/misc/src/svn/pyinstaller-hg$ cat babex/ex2.py
import os
print "\nLD_LIBRARY_PRELOAD:", os.environ.get('LD_LIBRARY_PRELOAD', None)
san...@bluff:/misc/src/svn/pyinstaller-hg$ Makespec.py babex/ex2.py
wrote /home/misc/src/svn/pyinstaller-hg/ex2/ex2.spec
now run Build.py to build the executable
san...@bluff:/misc/src/svn/pyinstaller-hg$ Build.py ex2/ex2.spec
checking Analysis
building because babex/ex2.py changed
running Analysis outAnalysis0.toc
Analyzing: ./support/_mountzlib.py
Analyzing: ./support/useUnicode.py
Analyzing: babex/ex2.py
ex2/build/pyi.linux2/ex2/outAnalysis0.toc no change!
checking PYZ
checking PKG
building because babex/ex2.py changed
building PKG outPKG3.pkg
checking EXE
rebuilding outEXE2.toc because pkg is more recent
building EXE from outEXE2.toc
Appending archive to EXE ex2/build/pyi.linux2/ex2/ex2
checking COLLECT
building outCOLLECT4.toc because ex2/build/pyi.linux2/ex2/ex2 is more recent
building COLLECT outCOLLECT4.toc
san...@bluff:/misc/src/svn/pyinstaller-hg$ ex2/dist/ex2/ex2
LD_LIBRARY_PRELOAD: None
Do other people have different behaviour on Linux?
sandro
*:-)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---