no psutil

This commit is contained in:
Adrien MALINGREY 2025-03-10 17:51:16 +01:00
parent 2959f47835
commit 989fd74606
2 changed files with 3 additions and 4 deletions

View File

@ -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"

View File

@ -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