mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
commit
f28fbabc7f
3 changed files with 19 additions and 1 deletions
|
@ -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 {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue