Changeset 4425 for anuga_core/source/anuga/caching
- Timestamp:
- May 3, 2007, 6:23:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/caching/caching.py
r4333 r4425 282 282 # Force singletons into a tuple. 283 283 # 284 284 285 if dependencies and type(dependencies) != types.TupleType \ 285 286 and type(dependencies) != types.ListType: … … 817 818 (argsfile,compressed1) = myopen(CD+FN+'_'+file_types[1],"rb",compression) 818 819 (admfile,compressed2) = myopen(CD+FN+'_'+file_types[2],"rb",compression) 820 821 if verbose is True and deps is not None: 822 print 'Caching: Dependencies are', deps.keys() 819 823 820 824 if not (argsfile and datafile and admfile) or \ … … 1504 1508 import types 1505 1509 1510 #print 'Caching DEBUG: Dependencies are', dependencies 1506 1511 d = {} 1507 1512 if dependencies: … … 1512 1517 for FN in dependencies: 1513 1518 expanded_FN = glob.glob(FN) 1514 1519 1520 if expanded_FN == []: 1521 errmsg = 'ERROR (caching.py): Dependency '+FN+' does not exist.' 1522 raise Exception, errmsg 1523 1515 1524 expanded_dependencies += expanded_FN 1516 1525 … … 1519 1528 if not type(FN) == types.StringType: 1520 1529 errmsg = 'ERROR (caching.py): Dependency must be a string.\n' 1521 errmsg += ' 1530 errmsg += ' Dependency given: %s' %FN 1522 1531 raise Exception, errmsg 1523 1532 if not os.access(FN,os.F_OK):
Note: See TracChangeset
for help on using the changeset viewer.