(keyword)
| 28 | |
| 29 | |
| 30 | def kill_env_process(keyword): |
| 31 | result = subprocess.run(['pgrep', '-n', keyword], stdout=subprocess.PIPE) |
| 32 | cr_pid = result.stdout.decode().strip() |
| 33 | if len(cr_pid) > 0: |
| 34 | subprocess.run(['kill', '-9', cr_pid]) |
| 35 | |
| 36 | class AirsimBridge: |
| 37 | def __init__(self, env_name): |