[NeXus-code-tickets] [NeXusCode] #107: stdpath bug in nxs.py

NeXus Data Format Library and Applications noreply at nexusformat.org
Wed Jan 9 13:51:53 GMT 2008


#107: stdpath bug in nxs.py
------------------------+---------------------------------------------------
 Reporter:  DarrenDale  |       Owner:  Unassigned
     Type:  defect      |      Status:  new       
 Priority:  minor       |   Milestone:            
Component:  bindings    |     Version:  trunk     
 Keywords:              |  
------------------------+---------------------------------------------------
 A small patch for the new python bindings:

 Index: bindings/python/nxs.py
 ===================================================================
 --- bindings/python/nxs.py      (revision 977)
 +++ bindings/python/nxs.py      (working copy)
 @@ -209,7 +209,7 @@
              ldenv = 'LD_LIBRARY_PATH'
          # Search the load library path as well as the standard locations
          ldpath = [p for p in os.environ.get(ldenv,'').split(':') if p !=
 '']
 -        stdpath = ['usr/local/lib','/usr/lib']
 +        stdpath = ['/usr/local/lib','/usr/lib']
          files += [os.path.join(p,lib) for p in [filedir]+ldpath+stdpath]

      # Given a list of files, try loading the first one that is available.

-- 
Ticket URL: <http://trac.nexusformat.org/code/ticket/107>
NeXus Data Format Library and Applications <http://www.nexusformat.org/>
NeXus Data Format Library and Applications



More information about the NeXus-code-tickets mailing list