in Gems/AWSCore/Code/Source/Editor/UI/AWSCoreResourceMappingToolAction.cpp [57:88]
AZStd::string AWSCoreResourceMappingToolAction::GetToolLaunchCommand() const
{
if (!AZ::IO::SystemFile::Exists(m_enginePythonEntryPath.c_str()) ||
!AZ::IO::SystemFile::Exists(m_toolScriptPath.c_str()) ||
!AZ::IO::SystemFile::Exists(m_toolQtBinDirectoryPath.c_str()) ||
!AZ::IO::SystemFile::Exists(m_toolConfigDirectoryPath.c_str()) ||
!AZ::IO::SystemFile::Exists(m_toolLogDirectoryPath.c_str()))
{
AZ_Error(AWSCoreResourceMappingToolActionName, false,
"Expected parameter for tool launch command is invalid, engine python path: %s, tool script path: %s, tool qt binaries path: %s, tool config path: %s, tool log path: %s",
m_enginePythonEntryPath.c_str(), m_toolScriptPath.c_str(), m_toolQtBinDirectoryPath.c_str(), m_toolConfigDirectoryPath.c_str(), m_toolLogDirectoryPath.c_str());
return "";
}
AZStd::string profileName = "default";
AWSCoreInternalRequestBus::BroadcastResult(profileName, &AWSCoreInternalRequests::GetProfileName);
if (m_isDebug)
{
return AZStd::string::format(
"\"%s\" " AWSCORE_EDITOR_PYTHON_DEBUG_ARGUMENT "-B \"%s\" --binaries-path \"%s\" --debug --profile \"%s\" --config-path \"%s\" --log-path \"%s\"",
m_enginePythonEntryPath.c_str(), m_toolScriptPath.c_str(), m_toolQtBinDirectoryPath.c_str(),
profileName.c_str(), m_toolConfigDirectoryPath.c_str(), m_toolLogDirectoryPath.c_str());
}
else
{
return AZStd::string::format(
"\"%s\" -B \"%s\" --binaries-path \"%s\" --profile \"%s\" --config-path \"%s\" --log-path \"%s\"",
m_enginePythonEntryPath.c_str(), m_toolScriptPath.c_str(), m_toolQtBinDirectoryPath.c_str(),
profileName.c_str(), m_toolConfigDirectoryPath.c_str(), m_toolLogDirectoryPath.c_str());
}
}