ldcheck.py

changeset 18
672ebc45685a
parent 17
327da5d00360
child 21
8006fb8cdb77
equal deleted inserted replaced
17:327da5d00360 18:672ebc45685a
64 with ldconfig_ldr_path.open() as ldconfig_ldr: 64 with ldconfig_ldr_path.open() as ldconfig_ldr:
65 load_colours(ldconfig_ldr) 65 load_colours(ldconfig_ldr)
66 with open(argv[1], 'r') as file: 66 with open(argv[1], 'r') as file:
67 model_body = read_ldraw(file, config = config) 67 model_body = read_ldraw(file, config = config)
68 model = Model(body = model_body) 68 model = Model(body = model_body)
69 from os.path import basename
70 model.name = basename(argv[1])
69 from testsuite import load_tests, check_model, format_report 71 from testsuite import load_tests, check_model, format_report
70 test_suite = load_tests() 72 test_suite = load_tests()
71 report = check_model(model, test_suite) 73 report = check_model(model, test_suite)
72 print(format_report(report, model, test_suite)) 74 print(format_report(report, model, test_suite))

mercurial