The psutil library .
To use the Script, follow these steps:
-
Make sure you have the
psutillibrary installed. You can install it using pip:pip install psutil -
Run your Python script to scan for all running python programs:
python main.py -
The script will show all running python programs along with the Process ID's and the location of the file and you can select one of id to stop.
psutil