File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed
Source/UnrealEnginePython Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments