Skip to content
Snippets Groups Projects
Commit e98e0702 authored by Tommy Olofsson's avatar Tommy Olofsson
Browse files

Made the csv tool not follow without -f.

parent f065f1bb
No related branches found
No related tags found
1 merge request!6Master
...@@ -146,7 +146,10 @@ def main(main_args): ...@@ -146,7 +146,10 @@ def main(main_args):
current = {} current = {}
type_ = {} type_ = {}
file_ = open(args.elc) file_ = open(args.elc)
reader = FollowingReader(file_, args.interval, args.timeout) if args.follow:
reader = FollowingReader(file_, args.interval, args.timeout)
else:
reader = Reader(file_)
d = labcomm.Decoder(reader) d = labcomm.Decoder(reader)
while True: while True:
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment