How can I run a shell script instead of python in a PyCharm run configuration? -
i trying setup pycharm invoke shell script, instead of python, run option. possible? in default options have python, python docs, , python tests. professional edition have django , others. however, have python interpreter in combobox , can't changed far can see.
if want see such feature in pycharm please vote on idea-112256 'command line' run configuration feature request.
run/debug configurations section of pycharm's online lists supported types of run/debug configurations , there's no support shell scripts indeed. however, might able add such support installing plugin. example, if interested in bash scripts there's bashsupport plugin adds support running shell scripts in run/debug configuration.
from plugins' home page:
bashsupports can directly run scripts within intellij. can create new run configuration bash scripts. here can set interpreter used run it. whenever script executed output logged. if bash prints out syntax errors errorneous lines clickable jump location of error.
for windows there's cmdsupport plugin provides action run .cmd scripts. seems not support running such scripts run/debug configuration however.
as workaround can use python run/debug configuration, specifying dummy (empty) python file run , use before launch option specifying external tool , specify path script when adding/configuring external tool. see in intellij idea, how can create key binding executes shell script current file parameter? details.
as pycharm based on intellij's idea platform question intellij idea: running shell script run/debug configuration related.
speaking of run/debug configurations might interested in plugin run configuration action which
(...) provides way use run configurations buttons on toolbar. or assign shortcuts execute specific run configuration.
Comments
Post a Comment