diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/main.c b/Modules/main.c index 11ac97e..2f5dc57 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -519,10 +519,10 @@ Py_Main(int argc, char **argv) } if (module != NULL) { - /* Backup _PyOS_optind and force sys.argv[0] = '-c' + /* Backup _PyOS_optind and force sys.argv[0] = '-m' so that PySys_SetArgv correctly sets sys.path[0] to ''*/ _PyOS_optind--; - argv[_PyOS_optind] = "-c"; + argv[_PyOS_optind] = "-m"; } PySys_SetArgv(argc-_PyOS_optind, argv+_PyOS_optind); |