Skip to content

Commit f406260

Browse files
authored
Merge pull request #7 from peardox/findfix
Findfix
2 parents 2f7c1e0 + 4be65b2 commit f406260

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Embeddable/PyEnvironment.Embeddable.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,8 @@ function TPyCustomEmbeddableDistribution.FindExecutable: string;
244244
Result := TPath.Combine(GetEnvironmentPath(), 'python.exe');
245245
if not TFile.Exists(Result) then
246246
Exit(String.Empty);
247+
// If we get this far and we're in a Windows only section then we're done so just exit with the Result intact
248+
Exit(Result);
247249
{$ELSEIF DEFINED(ANDROID)}
248250
//Let's try it in the library path first - we should place it in the library path in Android
249251
Result := TPath.GetLibraryPath();

0 commit comments

Comments
 (0)