diff --git a/src/Embeddable/PyEnvironment.Embeddable.pas b/src/Embeddable/PyEnvironment.Embeddable.pas index 28fa50e..c8bda2f 100644 --- a/src/Embeddable/PyEnvironment.Embeddable.pas +++ b/src/Embeddable/PyEnvironment.Embeddable.pas @@ -244,6 +244,8 @@ function TPyCustomEmbeddableDistribution.FindExecutable: string; Result := TPath.Combine(GetEnvironmentPath(), 'python.exe'); if not TFile.Exists(Result) then Exit(String.Empty); + // If we get this far and we're in a Windows only section then we're done so just exit with the Result intact + Exit(Result); {$ELSEIF DEFINED(ANDROID)} //Let's try it in the library path first - we should place it in the library path in Android Result := TPath.GetLibraryPath();