diff --git a/roscop/roscop.py b/roscop/roscop.py index f6d620635cf63e1ce2788cbd835f3c9918960d26..65d2eece7b1e04f291130a9be200d9a98092f921 100644 --- a/roscop/roscop.py +++ b/roscop/roscop.py @@ -21,9 +21,11 @@ class Roscop: print("Code roscop file: %s" % self.file) with open(self.file, 'rt') as f: reader = csv.DictReader(f, delimiter=';') + print(reader.fieldnames) for row in reader: - print("%s : %s : %s : %s : %s" % (row['key'], row['long_name'], - row['standard_name'], row['units'], row['format'])) + for key in reader.fieldnames: + print("%s:" % row[key], end='') + print() return # for testing in standalone context