Fix some issues calling Python on Windows systems

This commit is contained in:
Jon Evans
2025-01-02 22:45:05 -05:00
parent e13b31fd42
commit 89a50a3dcf
2 changed files with 20 additions and 2 deletions
+6
View File
@@ -181,8 +181,14 @@ std::optional<wxString> PYTHON_MANAGER::GetVirtualPython( const wxString& aNames
return std::nullopt;
wxFileName python( *envPath, wxEmptyString );
#ifdef _WIN32
python.AppendDir( "Scripts" );
python.SetFullName( "python.exe" );
#else
python.AppendDir( "bin" );
python.SetFullName( "python" );
#endif
if( !python.IsFileExecutable() )
return std::nullopt;