From 989fd74606b275f76403a66452ad00c7b4d377eb Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 10 Mar 2025 17:51:16 +0100 Subject: [PATCH] no psutil --- pyproject.toml | 3 ++- terminis/terminis.py | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index afdeb56..8f1d120 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "terminis" -version = "0.2.4.1" +version = "0.2.4.2" description = "Tetris clone for terminal. Ideal for servers without GUI!" authors = ["adrienmalin <41926238+adrienmalin@users.noreply.github.com>"] license = "MIT" @@ -16,6 +16,7 @@ classifiers = [ "Topic :: System :: Systems Administration" ] readme = "README.md" +include = ["music.sh"] [tool.poetry.dependencies] python = ">=2.7" diff --git a/terminis/terminis.py b/terminis/terminis.py index ed5b258..a512a71 100644 --- a/terminis/terminis.py +++ b/terminis/terminis.py @@ -3,7 +3,6 @@ import sys import os import subprocess -import psutil try: import curses @@ -595,8 +594,7 @@ class Music: def stop(self): if self.process: - for proc in psutil.Process(self.process.pid).children(recursive=True): - proc.terminate() + subprocess.run(['pkill', '-P', str(self.process.pid)]) self.process.terminate() self.process = None