I tried setting the DYLD_LIBRARY_PATH as follows, but it doesn't work:
import os
wxLibPath = "/Applications/Vue 6 Infinite/Python/PythonLib/wxDylibs"
os.environ["DYLD_LIBRARY_PATH"] = os.environ["DYLD_LIBRARY_PATH"] + ":"
+ wxLibPath
import wx
File
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p
ackages/wx-2.6-mac-ansi/wx/__init__.py", line 42, in ?
File
"//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-p
ackages/wx-2.6-mac-ansi/wx/_core.py", line 4, in ?
ImportError: Failure linking new module: /Applications/Vue 6
Infinite/Python/PythonLib/wx/_core_.so:
Library not loaded:
/usr/local/lib/wxPython-ansi-2.6.3.2rc2/lib/libwx_macd-2.6.0.dylib
Referenced from: /Applications/Vue 6
Infinite/Python/PythonLib/wx/_core_.so
Reason: image not found
It seems as though the wx/_core_.so file is hardcoded to refer to
/usr/local/lib. Any ideas?
Thanks.
"Robin Dunn" <robin@alldunn.com> wrote in message
news:<4558AE75.8070402@alldunn.com>...
···
Dave Burdick wrote:
> How can I move the wx DyLibs to a different location and have
> wxPython
> recognize the new path at runtime?You can set the DYLD_LIBRARY_PATH environment variable.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!