Skip to content

Commit 06cbce6

Browse files
committed
Win64 Path
1 parent 27ae881 commit 06cbce6

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

Source/UnrealEnginePython/UnrealEnginePython.Build.cs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -219,19 +219,11 @@ public UnrealEnginePython(TargetInfo Target)
219219

220220
if (Target.Platform == UnrealTargetPlatform.Win64)
221221
{
222-
if (pythonHome == "")
223-
{
224-
pythonHome = DiscoverPythonPath(windowsKnownPaths, "Win64");
225-
if (pythonHome == "")
226-
{
227-
throw new System.Exception("Unable to find Python installation");
228-
}
229-
}
230-
System.Console.WriteLine("Using Python at: " + pythonHome);
231-
PublicIncludePaths.Add(pythonHome);
232-
string libPath = GetWindowsPythonLibFile(pythonHome);
233-
PublicSystemLibraryPaths.Add(Path.GetDirectoryName(libPath));
234-
PublicAdditionalLibraries.Add(libPath);
222+
string PythonHome = Path.Combine(Target.UEThirdPartyBinariesDirectory, "Python3/Win64");
223+
PublicIncludePaths.Add(PythonHome);
224+
string LibPath = Path.Combine(Target.UEThirdPartySourceDirectory, "Python3/Win64/libs/python39.lib");
225+
PublicSystemLibraryPaths.Add(Path.GetDirectoryName(LibPath));
226+
PublicAdditionalLibraries.Add(LibPath);
235227
}
236228
else if (Target.Platform == UnrealTargetPlatform.Mac)
237229
{

0 commit comments

Comments
 (0)