chg, right number of args..

This commit is contained in:
iceman1001 2020-05-26 13:37:28 +02:00
parent 5fcb031a68
commit 3f02fa6e34

View file

@ -240,7 +240,7 @@ static int CmdScriptRun(const char *Cmd) {
py_args[i+1] = Py_DecodeLocale(argv[i], NULL);
}
PySys_SetArgv(argc, py_args);
PySys_SetArgv(argc+1, py_args);
// clean up
for (int i = 0; i < argc; ++i) {