I have a python script_1 which will be used to call another python script_2 using subprocess. When I do that I can see so many print statements and ouputs on the python console (or cmd). How can I redirect this output to a file along with displaying the output on the python console.
Basically, I need a windows executable command for ' | & tee '
command of Linux.
I tried many methods and all those didn't work.
Thanks for the help. :)