Skip to content

Commit 3d3b0a1

Browse files
authored
Merge pull request #7 from peardox/findfix
Findfix Former-commit-id: 530d3214f69dcb4a8b7c272a807002a1da2208e6 [formerly b51d9ed7b162e6f0a0a149b4bfaa201be2970d40] [formerly 9cbd82fa9d977ab1991793162275b6928e096668 [formerly 699a8f958c20a6533b992181c45e4821ac6a5c22]] Former-commit-id: f426fb24330e40fa828cbb45f8b11cf58b1c37ce [formerly a4f6a56f46e4a7308f1a171fd53c6ffa236f309e] Former-commit-id: 60a545f63ecd72bf565f68b7634c5f0e0de173ba Former-commit-id: c4a9210
2 parents 8b7f105 + 77b6488 commit 3d3b0a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)