Changeset 6310


Ignore:
Timestamp:
Feb 11, 2009, 2:35:08 PM (16 years ago)
Author:
rwilson
Message:

Check mux file access as R_OK (readable), not just F_OK (existence).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r6224 r6310  
    55735573    for i in range(len(quantities)):
    55745574        for file_in in files_in[i]:
    5575             if (os.access(file_in, os.F_OK) == 0):
     5575            if (os.access(file_in, os.R_OK) == 0):
    55765576                msg = 'File %s does not exist or is not accessible' % file_in
    55775577                raise IOError, msg
Note: See TracChangeset for help on using the changeset viewer.