Undo accidental commenting out of some Python search code

This commit is contained in:
Jon Evans
2025-01-02 17:31:42 -05:00
parent 20def236bf
commit 40929d2482
+4 -4
View File
@@ -106,8 +106,8 @@ wxString PYTHON_MANAGER::FindPythonInterpreter()
#if defined( __WINDOWS__ )
wxFileName pythonExe = FindKicadFile( "python.exe" );
//if( pythonExe.IsFileExecutable() )
// return pythonExe.GetFullPath();
if( pythonExe.IsFileExecutable() )
return pythonExe.GetFullPath();
#elif defined( __WXMAC__ )
wxFileName pythonExe( PATHS::GetOSXKicadDataDir(), wxEmptyString );
pythonExe.RemoveLastDir();
@@ -127,8 +127,8 @@ wxString PYTHON_MANAGER::FindPythonInterpreter()
// In case one is forced with cmake
pythonExe.Assign( wxString::FromUTF8Unchecked( PYTHON_EXECUTABLE ) );
//if( pythonExe.IsFileExecutable() )
// return pythonExe.GetFullPath();
if( pythonExe.IsFileExecutable() )
return pythonExe.GetFullPath();
// Fall back on finding any Python in the user's path