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] [tool.poetry]
name = "terminis" name = "terminis"
version = "0.2.4.1" version = "0.2.4.2"
description = "Tetris clone for terminal. Ideal for servers without GUI!" description = "Tetris clone for terminal. Ideal for servers without GUI!"
authors = ["adrienmalin <41926238+adrienmalin@users.noreply.github.com>"] authors = ["adrienmalin <41926238+adrienmalin@users.noreply.github.com>"]
license = "MIT" license = "MIT"
@ -16,6 +16,7 @@ classifiers = [
"Topic :: System :: Systems Administration" "Topic :: System :: Systems Administration"
] ]
readme = "README.md" readme = "README.md"
include = ["music.sh"]
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = ">=2.7" python = ">=2.7"

View File

@ -3,7 +3,6 @@
import sys import sys
import os import os
import subprocess import subprocess
import psutil
try: try:
import curses import curses
@ -595,8 +594,7 @@ class Music:
def stop(self): def stop(self):
if self.process: if self.process:
for proc in psutil.Process(self.process.pid).children(recursive=True): subprocess.run(['pkill', '-P', str(self.process.pid)])
proc.terminate()
self.process.terminate() self.process.terminate()
self.process = None self.process = None