[lyn3736] adding init files to module paths (#5111)

* fixing class names in PYI files

Signed-off-by: jackalbe <23512001+jackalbe@users.noreply.github.com>
monroegm-disable-blank-issue-2
Allen Jackson 4 years ago committed by GitHub
parent 04326673cb
commit 9b393d16fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -739,6 +739,11 @@ namespace EditorPythonBindings
moduleParts.pop_back();
AzFramework::StringFunc::Append(targetModule, ".pyi");
// create an __init__.py file as the base module path
AZStd::string initModule;
AzFramework::StringFunc::Join(initModule, moduleParts.begin(), moduleParts.end(), '.');
OpenInitFileAt(initModule);
AZStd::string modulePath;
AzFramework::StringFunc::Append(modulePath, m_basePath.c_str());
AzFramework::StringFunc::Append(modulePath, AZ_CORRECT_FILESYSTEM_SEPARATOR_STRING);

@ -846,7 +846,7 @@ namespace EditorPythonBindings
{
return ConstructPythonProxyObjectByTypename(behaviorClassName, pythonArgs);
});
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogClassWithName, subModuleName, behaviorClass, properSyntax);
PythonSymbolEventBus::QueueBroadcast(&PythonSymbolEventBus::Events::LogClassWithName, subModuleName, behaviorClass, syntaxName.value());
}
else
{

Loading…
Cancel
Save