Ignore:
Timestamp:
01/07/08 16:47:30 (4 years ago)
Author:
Freddie Akeroyd
Message:
  • Fix for automake-1.10
  • nxs.py is now editied during the install process to contain the correct path to the NeXus library

Refs #101

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bindings/python/nxs.py

    r999 r1002  
    185185    Load the NeXus library whereever it may be. 
    186186    """ 
     187    # this will get changed as part of the install process 
     188    # it should correspond to --prefix specified to ./configure 
     189    nxprefix = '/usr/local' 
    187190    # NEXUSLIB takes precedence 
    188191    if 'NEXUSLIB' in os.environ: 
     
    210213        # Search the load library path as well as the standard locations 
    211214        ldpath = [p for p in os.environ.get(ldenv,'').split(':') if p != ''] 
    212         stdpath = ['/usr/local/lib','/usr/lib'] 
     215        stdpath = [ nxprefix+'/lib', '/usr/local/lib', '/usr/lib'] 
    213216        files += [os.path.join(p,lib) for p in [filedir]+ldpath+stdpath] 
    214217 
Note: See TracChangeset for help on using the changeset viewer.