Skip to content

Instantly share code, notes, and snippets.

View ihydrad's full-sized avatar
🏠
Working from home

Дмитрий А. ihydrad

🏠
Working from home
  • 2GIS
  • Sterlitamak
View GitHub Profile
@alexeygrigorev
alexeygrigorev / mp_capture.py
Created July 16, 2018 08:35
Python stdout sharing between chind & parent processes
import sys
import time
from io import StringIO
import subprocess
from multiprocessing import Process, Pipe
from threading import Thread