Use PYTHON_MANAGER to launch actions and capture trace output

This commit is contained in:
Jon Evans
2025-01-11 11:46:56 -05:00
parent 92c804b1f3
commit 37d0d5f118
2 changed files with 67 additions and 35 deletions
+3 -4
View File
@@ -91,9 +91,8 @@ PYTHON_MANAGER::PYTHON_MANAGER( const wxString& aInterpreterPath )
void PYTHON_MANAGER::Execute( const wxString& aArgs,
const std::function<void( int, const wxString&,
const wxString& )>& aCallback,
const wxExecuteEnv* aEnv, bool aSaveOutput )
const std::function<void(int, const wxString&, const wxString&)>& aCallback,
const wxExecuteEnv* aEnv, bool aSaveOutput )
{
PYTHON_PROCESS* process = new PYTHON_PROCESS( aCallback );
process->Redirect();
@@ -227,7 +226,7 @@ std::optional<wxString> PYTHON_MANAGER::GetVirtualPython( const wxString& aNames
#ifdef _WIN32
python.AppendDir( "Scripts" );
python.SetFullName( "python.exe" );
python.SetFullName( "pythonw.exe" );
#else
python.AppendDir( "bin" );
python.SetFullName( "python" );