Switchboard: Use correct path to engine python executable on non-Windows platforms.

#preflight skip
#jira UE-142415
#lockdown alejandro.arango
#rb matt.johnson

#ROBOMERGE-AUTHOR: zach.brockway
#ROBOMERGE-SOURCE: CL 19069513 in //UE5/Release-5.0/... via CL 19090184
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v921-19075845)

[CL 19132629 by zach brockway in ue5-main branch]
This commit is contained in:
zach brockway
2022-02-24 19:19:52 -05:00
parent beec2508cf
commit dc16967af7
@@ -1020,9 +1020,15 @@ class DeviceUnreal(Device):
f"{self.name}: Queuing sync for project {project_name} "
f"(revisions: engine={engine_cl}, project={project_cl})")
python_path = os.path.normpath(os.path.join(
engine_dir, 'Binaries', 'ThirdParty', 'Python3', 'Win64',
'python.exe'))
if self.platform_binary_directory == 'Win64':
python_path = os.path.normpath(os.path.join(
engine_dir, 'Binaries', 'ThirdParty', 'Python3',
self.platform_binary_directory, 'python.exe'))
else:
python_path = os.path.normpath(os.path.join(
engine_dir, 'Binaries', 'ThirdParty', 'Python3',
self.platform_binary_directory, 'bin', 'python3'))
helper_path = os.path.normpath(os.path.join(
engine_dir, 'Plugins', 'VirtualProduction', 'Switchboard',
'Source', 'Switchboard', 'sbl_helper.py'))