commit | 3b30b19e0a7b9adb37a590d257438544ff0b032c | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <senthil@uthcode.com> | Wed Jul 04 19:50:29 2012 -0700 |
committer | Senthil Kumaran <senthil@uthcode.com> | Wed Jul 04 19:50:29 2012 -0700 |
tree | 0e0ca4c9c6e43832a4976ddb6a28092b54085d9a | |
parent | d0f5f4827db59fb210adb1b50fd3a536ee7f20da [diff] |
Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
diff --git a/Modules/main.c b/Modules/main.c index 135ef6e..1ce7c8f 100644 --- a/Modules/main.c +++ b/Modules/main.c
@@ -583,7 +583,7 @@ sts = PyRun_SimpleStringFlags(command, &cf) != 0; free(command); } else if (module) { - sts = RunModule(module, 1); + sts = (RunModule(module, 1) != 0); free(module); } else {