13d0407baSopenharmony_ci# 23d0407baSopenharmony_ci# Copyright (c) 2022 FuZhou Lockzhiner Electronic Co., Ltd. All rights reserved. 33d0407baSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 43d0407baSopenharmony_ci# you may not use this file except in compliance with the License. 53d0407baSopenharmony_ci# You may obtain a copy of the License at 63d0407baSopenharmony_ci# 73d0407baSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 83d0407baSopenharmony_ci# 93d0407baSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 103d0407baSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 113d0407baSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 123d0407baSopenharmony_ci# See the License for the specific language governing permissions and 133d0407baSopenharmony_ci# limitations under the License. 143d0407baSopenharmony_ci# 153d0407baSopenharmony_ci 163d0407baSopenharmony_ciimport os 173d0407baSopenharmony_cifrom os import path 183d0407baSopenharmony_ciimport sys 193d0407baSopenharmony_ciimport re 203d0407baSopenharmony_ciimport json 213d0407baSopenharmony_ci 223d0407baSopenharmony_ciif __name__ == "__main__": 233d0407baSopenharmony_ci exec_file = sys.argv[1] 243d0407baSopenharmony_ci file_elf = sys.argv[2] 253d0407baSopenharmony_ci out_dir = sys.argv[3] 263d0407baSopenharmony_ci 273d0407baSopenharmony_ci shell_script = '''{exec} {file} {out}'''.format(exec = exec_file, file = file_elf, out = out_dir) 283d0407baSopenharmony_ci cmd_output = os.system(shell_script); 293d0407baSopenharmony_ci print(cmd_output)