Skip to content

Commit

Permalink
Change to process environment variables
Browse files Browse the repository at this point in the history
Co-authored-by: Ondřej Samohel <[email protected]>
  • Loading branch information
kalisp and antirotor authored Aug 7, 2024
1 parent da8f96e commit 2feff1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def __main__( deadlinePlugin ):
deadlinePlugin.LogInfo('Version defined: %s' % version )
version_string = str(version).replace(".", "_")
executable_key = f"UnrealEditorExecutable_{version_string}"
unreal_exe_list = (deadlinePlugin.GetEnvironmentVariable(executable_key)
or deadlinePlugin.GetEnvironmentVariable("UnrealExecutable"))
unreal_exe_list = (deadlinePlugin.GetProcessEnvironmentVariable(executable_key)
or deadlinePlugin.GetProcessEnvironmentVariable("UnrealExecutable"))
if not unreal_exe_list:
deadlinePlugin.FailRender( "Unreal Engine " + str(version) + " entry not found in .param file" )
unreal_executable = FileUtils.SearchFileList( unreal_exe_list )
Expand Down

0 comments on commit 2feff1d

Please sign in to comment.