mirror of
https://github.com/LTTLabsOSS/markbench-tests.git
synced 2026-04-24 03:01:09 -04:00
* update workflow * update file path * fix action error * fix step id * revert test change * test * test * fix newline * run poetry install * fix error * install poetry * test * revert poetry install * test calling pylint as module * test calling pylint as module
11 lines
346 B
Python
11 lines
346 B
Python
"""Functions related to managing processes"""
|
|
import psutil
|
|
|
|
def terminate_processes(*process_names: str) -> None:
|
|
"""Finds given process names and terminates them"""
|
|
for name in process_names:
|
|
for process in psutil.process_iter():
|
|
if name.lower() in process.name().lower():
|
|
process.terminate()
|
|
# test
|