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:33:45 -07:00
commit f28fbabc7f
3 changed files with 19 additions and 1 deletions

View file

@ -660,7 +660,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 {