This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 将 python 脚本添加到 postbuild 时生成错误

Guru**** 2586755 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1069605/adding-python-script-to-postbuild-generate-error

我尝试添加一个构建后脚本,以加快我的大量工作。 我用 python 编写了它,但我无法从 CCS 级别运行它。

我尝试了不同的命令:
postbuild.py (此处未找到路径)
CD ${project_root}和 postbuild.py (此处未出现错误)
${project_root}/postbuild.py (如屏幕截图所示)

没有版本达到脚本运行的程度。 我也找不到任何关于如何写这些东西的指南。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好,

    构建后步骤字段将只需将该字段中的任何命令发送到系统控制台以按实际执行。

    我假设您正在尝试执行 python 脚本。 如果是这样,您应该能够使用 python 命令运行它以进行 python 安装。 另请注意,您也可以在 CCS 构建属性中设置 POST 构建步骤:

    谢谢

    Ki