mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 10:21:25 -04:00
update tools/syscap_collector.py.
Signed-off-by: flying <pengmengjie1@huawei.com>
This commit is contained in:
@@ -45,7 +45,7 @@ def dict_to_json(output_path: str, syscaps_dict: dict):
|
||||
for product_name, syscaps_list in syscaps_dict.items():
|
||||
filename = os.path.join(output_path, f'{product_name}.json')
|
||||
with os.fdopen(os.open(filename, flags, modes), 'w') as f:
|
||||
json.dump({'SysCaps': syscaps_list}, f)
|
||||
json.dump({'SysCaps': syscaps_list}, indent=4, f)
|
||||
print("end...")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user