fixed bug preventing files specified with full path to be treated properly

This commit is contained in:
Philip Eisenlohr 2016-04-05 16:17:55 -04:00
parent da29b1a361
commit e9ec497da6
1 changed files with 8 additions and 4 deletions

View File

@ -37,10 +37,14 @@ if options.label is None:
if filenames == []: filenames = [None] if filenames == []: filenames = [None]
for name in filenames: for name in filenames:
try: damask.util.croak(name)
table = damask.ASCIItable(name = name,
outname = options.label+'_averaged_'+name if name else name, try: table = damask.ASCIItable(name = name,
buffered = False) outname = os.path.join(
os.path.split(name)[0],
options.label+'_averaged_'+os.path.split(name)[1]
) if name else name,
buffered = False)
except: continue except: continue
damask.util.report(scriptName,name) damask.util.report(scriptName,name)