python-tee icon indicating copy to clipboard operation
python-tee copied to clipboard

this does not work for subprocess stdout too

Open braindevices opened this issue 4 years ago • 0 comments

with tee.StdoutTee('/tmp/testtee.log'):
    subprocess.call('ls .', stdout=sys.stdout, shell=True)
``
raises: 
c2pwrite = stdout.fileno()

AttributeError: 'StdoutTee' object has no attribute 'fileno'

I think better way to do this maybe just subclass the file object.

braindevices avatar Nov 10 '20 13:11 braindevices