sprint/Main/commands.py
Egor Matveev 9c0123cbf2 initial
2021-07-11 10:28:12 +03:00

9 lines
157 B
Python

from subprocess import Popen
from sys import stdout
def shell(cmd, output=stdout):
p = Popen(cmd, shell=True, stdout=output)
p.wait()
p.kill()