mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-21 04:13:22 +08:00
[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:
parent
78fbe47e76
commit
46a49fb421
@ -25,7 +25,8 @@ void DebugClient::dprint( const std::wstring &str, bool dml )
|
|||||||
}
|
}
|
||||||
else
|
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
|
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
|
else
|
||||||
{
|
{
|
||||||
std::wcerr << str;
|
python::object sys = python::import("sys");
|
||||||
|
sys.attr("stderr").attr("write")( str );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user