version https://git-lfs.github.com/spec/v1
-oid sha256:ab68b0439d276fdf0f5d839281e44a516a6fb44d3bf4843101b3578acdd6d68e
+oid sha256:efc0bb2ab65d0ad5bb1469bf529b32e0f0f8cde2b9256def4001c365da2ec845
size 52024
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:fbbfb65f766ee8de8840e15812abb1d31035dfe2f1e7d63b23dac073896f5600
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:13a516df219bf7246ec34ca65171bfa9000988907e7c9151584bd85efaddc19d
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:b108813a68df254a3cebda9f3e938a5d76188133211fa974184b2a607bc689ac
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:dbda3ff00bd54d277acc2a86ed3210f3a069302c2363cbafefd60d0379b9d25b
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:8fd2d8818d0cc756e065e6a872b029081bc38662e05283aca9cc75fedeeab206
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:be60c395114125059579cafdd42e9e8c6a5372d4123e5204d1315026bce8e736
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:60fef533bd4c8a68cc5ced7d1d51a4af7d2868ca6099564dac103fcc70f79593
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:d1370669175f3ea04c455839c377ec9f6eade73ea04fb88820cb9b2717a76ed1
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:56e11c8370939aa63e41851bee4b39f1de58035f63c0ed9ed090fd04e546bcb0
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:4add68c802082e008168c41c47c8a8ac4d494d9a8ef36fd0116252ca0b54c899
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:b38bd661e9db76946670deca370c4e7cf12411f82be9c6ca5d185752efe54e01
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:c528e0e0aaa44eaf902c117c023000eb7843aa967aa245a64bd75b92338ec9f1
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:a2758f2d5973d4afabbf26c765ca46fd025bcbeb27d9849a226ca261d82ed5aa
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:f1a9c8e3f967f84b44b140735cd3ae23768531b0f552585b0f6d9326ffa2d12a
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:ae604513790f3f29fb2efe5d1077785c361b962a3877f1050df9d3fb91851a5c
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:4e00d958a71ff06fa866c5b3cc46dc6e5a7b193e8681d84e1b60bad542db7fbc
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:e27f49f08cefb628db2aacc319e2ffbbcfab9eb7afc945630254824adf510343
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:5afb9b60880657ad7092445e90fddc488cc4087eeb1452c0a82df8f31443d78f
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:ac0505e5357f162a082c9675acb47094e9251883ad6289364133e8c52c8ae6eb
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:ae4c188da2acee2a817c130543bf3be085676cdf6a108881dae341faf2a78a37
+size 1896
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:fbbfb65f766ee8de8840e15812abb1d31035dfe2f1e7d63b23dac073896f5600
+size 1896
--- /dev/null
+import argparse\rimport subprocess\rimport shutil\rimport os\r\rdef main():\r parser = argparse.ArgumentParser(description='Process paths.')\r parser.add_argument('-c', '--config', help='Config file path', required=True)\r parser.add_argument('-i', '--input', help='Input path', required=True)\r parser.add_argument('-o', '--output', help='Output path', required=True)\r args = parser.parse_args()\r\r print(f"Config path: {args.config}")\r print(f"Input path: {args.input}")\r print(f"Output path: {args.output}")\r\r # 定义命令和参数\r command = [\r "python", "images_tool.py",\r "-p", "file",\r "-d", "cmp",\r "-c", args.config,\r "-i", args.input,\r "-o", args.output\r ]\r\r print(f"Executing command: {' '.join(command)}")\r\r # 执行命令\r try:\r subprocess.run(command, check=True)\r print("Command executed successfully.")\r except subprocess.CalledProcessError as e:\r print(f"An error occurred while executing the command: {e}")\r\r # 构建目标路径\r target_dir = os.path.join('FD230', 'code', 'sdk', 'build', 'config', 'target_config', 'brandy', 'mk_fs_image', 'fd230', 'fs', 'user', 'res')\r\r print(f"Source directory: {args.output}")\r print(f"Target directory: {target_dir}")\r\r # 复制文件夹\r try:\r if os.path.exists(target_dir):\r shutil.rmtree(target_dir) # 删除目标文件夹(如果存在)\r shutil.copytree(args.output, target_dir)\r print(f"Copied {args.output} to {target_dir}.")\r except Exception as e:\r print(f"An error occurred while copying the directory: {e}")\r\rif __name__ == "__main__":\r main()\r
\ No newline at end of file