PyCharm - 如何创建 Run/Debug 配置来执行使用 Python 脚本作为参数的 .bat 文件?
PyCharm - How to create a Run/Debug Configuration that executes a .bat file which uses a Python script as a parameter?
我想创建一个新的 Run/Debug 配置,它执行接受 Python 脚本作为参数的 .bat
文件。
我要执行的程序是 MonkeyRunner
(Android SDK 的工具部分),它位于 C:\Users\talha\AppData\Local\Android\Sdk\tools\bin
文件夹中。我的 PyCharm 项目位于 C:\Users\talha\Documents\PyCharmProjects
文件夹中。
无需在资源管理器中手动导航——只需在此类 bat 文件上使用 "Navigate | Select in... | Explorer (Alt+F1, 8)",IDE 将打开资源管理器并选择该文件
https://intellij-support.jetbrains.com/hc/en-us/community/posts/207057025-Can-I-run-a-batch-file-bat-from-within-the-IDE-
free plugin on the JetBrains marketplace 提供:
Windows Batch Scripts support for IntelliJ IDEA. Supports syntax
highlighting, run configurations that can run any command, also empty
configurations. Empty run configurations are useful when you want to
execute an external tool through a run configuration.
我想创建一个新的 Run/Debug 配置,它执行接受 Python 脚本作为参数的 .bat
文件。
我要执行的程序是 MonkeyRunner
(Android SDK 的工具部分),它位于 C:\Users\talha\AppData\Local\Android\Sdk\tools\bin
文件夹中。我的 PyCharm 项目位于 C:\Users\talha\Documents\PyCharmProjects
文件夹中。
无需在资源管理器中手动导航——只需在此类 bat 文件上使用 "Navigate | Select in... | Explorer (Alt+F1, 8)",IDE 将打开资源管理器并选择该文件 https://intellij-support.jetbrains.com/hc/en-us/community/posts/207057025-Can-I-run-a-batch-file-bat-from-within-the-IDE-
free plugin on the JetBrains marketplace 提供:
Windows Batch Scripts support for IntelliJ IDEA. Supports syntax highlighting, run configurations that can run any command, also empty configurations. Empty run configurations are useful when you want to execute an external tool through a run configuration.