From 40929d2482508b02e923fd3e86d08f693fb8e80e Mon Sep 17 00:00:00 2001
From: Jon Evans <jon@craftyjon.com>
Date: Thu, 2 Jan 2025 17:31:42 -0500
Subject: [PATCH] Undo accidental commenting out of some Python search code

---
 scripting/python_manager.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripting/python_manager.cpp b/scripting/python_manager.cpp
index c36885877f..93232b7fbb 100644
--- a/scripting/python_manager.cpp
+++ b/scripting/python_manager.cpp
@@ -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