[0.1.x] fixed : output for standalone python app with stdout redirection

git-svn-id: https://pykd.svn.codeplex.com/svn@75464 9b283d60-5439-405e-af05-b73fd8c4d996
This commit is contained in:
SND\kernelnet_cp 2012-04-11 16:29:58 +00:00 committed by Mikhail I. Izmestev
parent 78fbe47e76
commit 46a49fb421

View File

@ -25,7 +25,8 @@ void DebugClient::dprint( const std::wstring &str, bool dml )
}
else
{
std::wcout << str;
python::object sys = python::import("sys");
sys.attr("stdout").attr("write")( str );
}
}
@ -64,7 +65,8 @@ void DebugClient::eprint( const std::wstring &str )
}
else
{
std::wcerr << str;
python::object sys = python::import("sys");
sys.attr("stderr").attr("write")( str );
}
}
@ -104,7 +106,8 @@ DbgOut::write( const std::wstring &str )
}
else
{
std::wcerr << str;
python::object sys = python::import("sys");
sys.attr("stderr").attr("write")( str );
}
}