Eclipse Run Configuration to kill python.exe?

157 Views Asked by At

I am running a Django server from my run configuration which translates to:

python manage.py runserver --noreload

The stop button in the error panel doesn't kill the process, so I usually run

pskill python

How do I add this to my Eclipse run configurations?

1

There are 1 best solutions below

0
On

My solution was to create a python file named "pskill.py" containing:

from subprocess import call
from sys import argv

if __name__=='__main__':
    call(['pskill', argv[1]])

And add it under "Python Run" in Run Configurations.