Skip to content

Findfix #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Embeddable/PyEnvironment.Embeddable.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down