Changeset 1003 for trunk/bindings/python


Ignore:
Timestamp:
01/07/08 16:58:29 (4 years ago)
Author:
Freddie Akeroyd
Message:
  • On windows check for NEXUSDIR variable set by installer

Refs #101

File:
1 edited

Legend:

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

    r1002 r1003  
    198198        files = [] 
    199199 
     200    # NEXUSDIR is set by the Windows installer for NeXus 
     201    if 'NEXUSDIR' in os.environ: 
     202        winnxdir = os.environ['NEXUSDIR'] 
     203    else: 
     204        winnxdir =  'C:/Program Files/NeXus Data Format' 
     205 
    200206    # Default names and locations to look for the library are system dependent 
    201207    filedir = os.path.dirname(__file__) 
     
    203209        files += [filedir+"/libNeXus.dll", 
    204210                  filedir+"/libNeXus-0.dll", 
    205                   'C:/Program Files/NeXus Data Format/bin/libNeXus-0.dll'] 
     211                  winnxdir + '/bin/libNeXus-0.dll'] 
    206212    else: 
    207213        if sys.platform in ('darwin'): 
Note: See TracChangeset for help on using the changeset viewer.