{LYN-3645} Fix up EPB search paths for Editor Scripts (#645)

* {LYN-3645} Fix up EPB search paths for Editor Scripts

* Changes the path to a raw string to properly escape Windows paths that use backslashes

Jira: https://jira.agscollab.com/browse/LYN-3645
Tests: The PythonVMLoads_SysPathExtendedToGemScripts_EditorPythonBindingsValidaitonFound now works

* the correct location of the 'r'
main
jackalbe 5 years ago committed by GitHub
parent bbfb136dc5
commit faf93a93f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -543,7 +543,7 @@ namespace EditorPythonBindings
{
if (!oldPathSet.contains(thisStr))
{
pathAppend.append(AZStd::string::format("sys.path.append('%s')\n", thisStr.c_str()));
pathAppend.append(AZStd::string::format("sys.path.append(r'%s')\n", thisStr.c_str()));
appended = true;
}
}

Loading…
Cancel
Save