|
@@ -57,7 +57,7 @@ class ObjectReady:
|
|
|
)
|
|
|
) for i in range(self.count_interface)])
|
|
|
|
|
|
- return ARGS.delimiter.join((self.frame, self.cabinet, self.os, self.motherboard, self.cpu, self.ram, row_interface))+'\n'
|
|
|
+ return ARGS.delimiter.join((self.frame, self.cabinet, self.os, self.motherboard, self.cpu, self.ram, row_interface))
|
|
|
except AttributeError:
|
|
|
return None
|
|
|
|
|
@@ -164,22 +164,21 @@ def create_csv(list_obj: list[ObjectReady]) -> None:
|
|
|
|
|
|
for obj in list_obj:
|
|
|
try:
|
|
|
- f.write(obj.get_csv_row())
|
|
|
+ f.write(obj.get_csv_row() + '\n')
|
|
|
except TypeError as te:
|
|
|
logger.error(F'{obj.path} -> {te}')
|
|
|
continue
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
- print('start program')
|
|
|
+ logger.info("Start programm")
|
|
|
+
|
|
|
try:
|
|
|
ARGS = parse.parse_args(sys.argv[1:])
|
|
|
except argparse.ArgumentError:
|
|
|
parse.print_help()
|
|
|
-
|
|
|
create_logger()
|
|
|
-
|
|
|
- logger.info("Start programm")
|
|
|
logger.info(F"Base dir: {ARGS.path}")
|
|
|
create_csv(get_ready_information())
|
|
|
+
|
|
|
logger.info("Stop programm")
|