Skip to content

Commit

Permalink
Refs #4204. Fix for running from a directory outside bin.
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Nov 28, 2011
1 parent dbdc7ee commit e3eb756
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Code/Mantid/Framework/PythonAPI/MantidFramework.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ def get_libpath(mainlib, dependency):
# NeXus has to be loaded as well as there seems to be an issue with
# the thread-local storage not being initialized properly unles
# it is loaded before other libraries.
dlloader(get_libpath(os.path.join('libMantidKernel.so'), 'stdc++'))
dlloader(get_libpath(os.path.join('libMantidKernel.so'), 'libNeXus'))
ldpath = os.environ.get("LD_LIBRARY_PATH", "")
ldpath += ":" + _bin
os.environ["LD_LIBRARY_PATH"] = ldpath
dlloader(get_libpath(os.path.join(_bin,'libMantidKernel.so'), 'stdc++'))
dlloader(get_libpath(os.path.join(_bin,'libMantidKernel.so'), 'libNeXus'))
dlloader(os.path.join(_bin, 'libMantidKernel.so'))
dlloader(os.path.join(_bin, 'libMantidGeometry.so'))
dlloader(os.path.join(_bin, 'libMantidAPI.so'))
Expand Down

0 comments on commit e3eb756

Please sign in to comment.