Genesis commit
This commit is contained in:
commit
f045967591
3 changed files with 66 additions and 0 deletions
12
data.py
Normal file
12
data.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from subprocess import PIPE, STDOUT, Popen
|
||||
from typing import Callable, List, Tuple
|
||||
from re import Pattern
|
||||
|
||||
output_binds: List[Tuple[Pattern, Callable]] = []
|
||||
proc = None
|
||||
|
||||
|
||||
def initializeProc(cmd):
|
||||
global proc
|
||||
proc = Popen(cmd.split(), stdin=PIPE, stdout=PIPE,
|
||||
stderr=STDOUT, text=True, bufsize=1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue