Lines Matching defs:json5
33 import json5
239 oh_package_json_path = os.path.join(task.path, *task.hap_module_path, 'oh-package.json5')
243 json_data = json5.load(json_file)
532 # modify build-profile.json5
533 profile_file = os.path.join(task.path, 'build-profile.json5')
538 profile_data = json5.load(file)
546 json5.dump(profile_data, file)
548 # modify module.json5 for stage mode
550 config_file = os.path.join(config_file_dir, 'module.json5')
555 config_data = json5.load(file)
558 json5.dump(config_data, file)
1222 profile_file = os.path.join(task.path, 'build-profile.json5')
1224 profile_data = json5.load(file)
1440 # get build-profile.json5
1442 task.path, *task.hap_module_path, 'build-profile.json5')
1447 profile_data = json5.load(file)
1455 json5.dump(profile_data, file)
2452 oh_package_json_path = os.path.join(task.path, 'build-profile.json5')
2454 json_data = json5.load(json_file)
2469 json5.dump(json_data, json_file, indent=4, ensure_ascii=False)
2507 oh_package_json_path = os.path.join(task.path, task.hap_module, 'oh-package.json5')
2509 json_data = json5.load(json_file)
2527 har_build_profile_json_path = os.path.join(task.path, *module_path, 'build-profile.json5')
2529 json_data = json5.load(json_file)
2680 build_profile_json_file = os.path.join(task.path, 'build-profile.json5')
2682 json_data = json5.load(json_file)
2697 json5.dump(json_data, json_file, indent=2)