Changeset 873 for SHX/trunk


Ignore:
Timestamp:
11/23/12 00:10:41 (8 years ago)
Author:
marcus
Message:
  • fixing exception when $SH_FILTER is not defined
File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/tools/import_inventory.py

    r871 r873  
    173173    if fdir.startswith('$'): 
    174174        fdir = os.getenv(fdir[1:]) 
    175     if fdir.startswith('~'): 
     175    elif fdir.startswith('~'): 
    176176        fdir = os.path.expanduser(fdir) 
     177 
     178    if not fdir: 
     179        raise NameError("Directory for filters not found/set. See help (-h)!") 
    177180 
    178181    filters = {} 
Note: See TracChangeset for help on using the changeset viewer.