3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

Don't display on stdout in py_wrap_generator when using log_to_stream

This commit is contained in:
Akash Levy 2024-07-01 02:29:49 -07:00
parent dec43679be
commit fee4caafb7

View file

@ -2429,7 +2429,8 @@ namespace YOSYS_PYTHON {
{
// Create an ostream that delegates to the python object.
boost::iostreams::stream<PythonOutputDevice>* output = new boost::iostreams::stream<PythonOutputDevice>(object);
Yosys::log_streams.insert(Yosys::log_streams.begin(), output);
Yosys::log_streams.clear();
Yosys::log_streams.push_back(output);
};