File kicad-6.0.9-fix-installed-python-path.patch of Package mingw32-kicad

--- kicad-6.0.9/eeschema/bom_plugins.cpp.orig	2023-01-25 13:38:15.544436173 +0100
+++ kicad-6.0.9/eeschema/bom_plugins.cpp	2023-01-25 13:40:51.271828045 +0100
@@ -94,7 +94,10 @@
         python.SetFullName(wxT( "python3" ) );
 
         wxString interpreter = python.GetFullPath();
-#else
+#elif defined(__WINDOWS__)
+        // get from current binary dir or path to support portable installations
+        wxString interpreter = wxString::FromUTF8Unchecked( "python3" );
+#else        
         wxString interpreter = wxString::FromUTF8Unchecked( PYTHON_EXECUTABLE );
 #endif
         if( interpreter.IsEmpty() )
openSUSE Build Service is sponsored by