diff options
author | Manohar Vanga <mvanga@mpi-sws.org> | 2016-04-01 07:57:27 -0400 |
---|---|---|
committer | Manohar Vanga <mvanga@mpi-sws.org> | 2016-04-01 07:57:27 -0400 |
commit | 5733e974b6daa7339d8f46e19755bcc64d9c1e63 (patch) | |
tree | 6ab71ff3eacb6d6e7c502e2c9621f193e221e23b | |
parent | 8fbe5ea60702063cad290a641b0965ad00fbcc06 (diff) |
Ignore empty files on st-draw
-rwxr-xr-x | st-draw | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -80,6 +80,7 @@ def main(args=sys.argv[1:]): | |||
80 | opts.output = default_output_name(opts.file) | 80 | opts.output = default_output_name(opts.file) |
81 | 81 | ||
82 | try: | 82 | try: |
83 | opts.file = [f for f in opts.file if os.stat(f).st_size > 0] | ||
83 | trace = SchedTrace(opts.file) | 84 | trace = SchedTrace(opts.file) |
84 | except IOError, msg: | 85 | except IOError, msg: |
85 | print 'Could not load trace files (%s)' % msg | 86 | print 'Could not load trace files (%s)' % msg |