no psutil
This commit is contained in:
parent
2959f47835
commit
989fd74606
@ -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"
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user