Launch script at the end of the run in PyCharm(在 PyCharm 中运行结束时启动脚本)
问题描述
对于特定情况,我需要所有 PyCharm 项目在每次运行结束时运行给定的脚本.
For a specific case, I need all PyCharm projects to run a given script at the end of each run.
在运行/调试配置中,有一个选项可以在启动前运行脚本.是否有类似的选项可以在运行结束后运行脚本?
In the Run/Debug configurations, there is an option to run a script before launch. Is there a similar option to run a script once the run is over?
如果它不存在(正如我所怀疑的那样),我可以使用其他技巧吗,也许使用 zsh 别名或其他东西?
If it does not exist (as I suspect), is there another trick I could use, maybe with a zsh alias or something?
推荐答案
可以使用插件Multirun 在任何 JetBrains IDE 上运行.使用它只需为您的主脚本创建一个配置,为最终脚本创建另一个配置.之后,只需创建一个调用两个脚本的 Multirun 配置.
You can use the plugin Multirun on any JetBrains IDE. Using that just create a configuration for your main script and another one for the end-script. After that just create a Multirun configuration that calls both of your scripts.
这篇关于在 PyCharm 中运行结束时启动脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在 PyCharm 中运行结束时启动脚本
基础教程推荐
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
