Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp

This commit is contained in:
Senthil Kumaran 2012-07-04 19:28:16 -07:00
parent 035997f1a3
commit f01a337950
3 changed files with 19 additions and 1 deletions

View file

@ -673,7 +673,7 @@ Py_Main(int argc, wchar_t **argv)
sts = run_command(command, &cf);
free(command);
} else if (module) {
sts = RunModule(module, 1);
sts = (RunModule(module, 1) != 0);
}
else {