mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Use log formatting as intended.
This commit is contained in:
parent
3e2c456313
commit
57317c3196
@ -79,7 +79,7 @@ def main():
|
|||||||
sheet_conf = ast.literal_eval(sheet_conf_file.read())
|
sheet_conf = ast.literal_eval(sheet_conf_file.read())
|
||||||
except Exception:
|
except Exception:
|
||||||
sheet_conf = {}
|
sheet_conf = {}
|
||||||
logging.debug('no sheet.conf for {}'.format(sheet_path))
|
logging.debug('no sheet.conf for %s', sheet_path)
|
||||||
|
|
||||||
sheet_conf = dict(global_conf.items() + sheet_conf.items())
|
sheet_conf = dict(global_conf.items() + sheet_conf.items())
|
||||||
|
|
||||||
@ -90,14 +90,14 @@ def main():
|
|||||||
config_names = [p for p in os.listdir(sheet_path)
|
config_names = [p for p in os.listdir(sheet_path)
|
||||||
if os.path.isdir(os.path.join(sheet_path, p))]
|
if os.path.isdir(os.path.join(sheet_path, p))]
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.warning(e)
|
logging.warning('error while determining configuration names for %s: %s', sheet_path, e)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
collection = {}
|
collection = {}
|
||||||
|
|
||||||
for configuration, configuration_path in \
|
for configuration, configuration_path in \
|
||||||
[(c, os.path.join(sheet_path, c)) for c in config_names]:
|
[(c, os.path.join(sheet_path, c)) for c in config_names]:
|
||||||
logging.info('processing {}'.format(configuration_path))
|
logging.info('processing %s', configuration_path)
|
||||||
for xml_fullname in glob(os.path.join(configuration_path, '*.xml')):
|
for xml_fullname in glob(os.path.join(configuration_path, '*.xml')):
|
||||||
collect_xml(collection, configuration, xml_fullname)
|
collect_xml(collection, configuration, xml_fullname)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user