Merge pull request #1216 from aws-lumberyard-dev/pyrunfile_args_fix

fix handling of multiple arguments when running python scripts from console
monroegm-disable-blank-issue-2
greerdv 5 years ago committed by GitHub
commit 492225931c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -718,7 +718,8 @@ namespace EditorPythonBindings
for (int arg = 0; arg < args.size(); arg++)
{
argv[arg + 1] = Py_DecodeLocale(args[arg].data(), nullptr);
AZStd::string argString(args[arg]);
argv[arg + 1] = Py_DecodeLocale(argString.c_str(), nullptr);
}
// Tell Python the command-line args.
// Note that this has a side effect of adding the script's path to the set of directories checked for "import" commands.

Loading…
Cancel
Save