BasicTools.Helpers.PrintBypass module

Send all the print statements to a file or to the sink os …

Also the output can be duplicated to a file

BasicTools.Helpers.PrintBypass.CheckIntegrity()[source]
class BasicTools.Helpers.PrintBypass.PrintBypass[source]

Bases: object

CopyOutputToDisk(filename, filenamecerr=None, filtersToOuput2=None)[source]
Print(text)[source]

To print to the original cout

PrintCerr(text)[source]

To print to the original cerr

Restore()[source]
ToDisk(filename, filenamecerr=None)[source]
ToRedirect(cout_obj, cerr_obj=None)[source]
ToSink()[source]
BasicTools.Helpers.PrintBypass.eprint(*args, **kwargs)[source]