diff --git a/processing/post/averageTable.py b/processing/post/averageTable.py index edb0a0661..4a2f1eca6 100755 --- a/processing/post/averageTable.py +++ b/processing/post/averageTable.py @@ -37,10 +37,14 @@ if options.label is None: if filenames == []: filenames = [None] for name in filenames: - try: - table = damask.ASCIItable(name = name, - outname = options.label+'_averaged_'+name if name else name, - buffered = False) + damask.util.croak(name) + + try: table = damask.ASCIItable(name = name, + 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 damask.util.report(scriptName,name)