blob: 7c368c7e36eb10ad7e45c08d0b8321d9a5c064ca [file] [log] [blame]
Guido van Rossum667d7041995-08-04 04:20:48 +00001/* Python interpreter main program */
2
3#include "Python.h"
Guido van Rossuma075ce11997-12-05 21:56:45 +00004#include "osdefs.h"
Guido van Rossum393661d2001-08-31 17:40:15 +00005#include "compile.h" /* For CO_FUTURE_DIVISION */
Guido van Rossum667d7041995-08-04 04:20:48 +00006
Guido van Rossum66a70131996-12-09 18:46:58 +00007#ifdef HAVE_UNISTD_H
8#include <unistd.h>
9#endif
Guido van Rossum667d7041995-08-04 04:20:48 +000010
Guido van Rossum3e7ae7a1997-01-17 22:05:38 +000011#ifdef MS_WINDOWS
12#include <fcntl.h>
13#endif
14
Guido van Rossuma075ce11997-12-05 21:56:45 +000015#if defined(PYOS_OS2) || defined(MS_WINDOWS)
16#define PYTHONHOMEHELP "<prefix>\\lib"
17#else
Marc-André Lemburgda4dbc32001-06-12 16:13:51 +000018#define PYTHONHOMEHELP "<prefix>/pythonX.X"
Guido van Rossuma075ce11997-12-05 21:56:45 +000019#endif
20
Thomas Wouters2cffc7d2000-11-03 08:18:37 +000021#include "pygetopt.h"
22
Guido van Rossuma22865e2000-09-05 04:41:18 +000023#define COPYRIGHT \
Guido van Rossum36002d72001-07-18 16:59:46 +000024 "Type \"help\", \"copyright\", \"credits\" or \"license\" " \
25 "for more information."
Guido van Rossuma22865e2000-09-05 04:41:18 +000026
Guido van Rossumac56b031996-07-21 02:33:38 +000027/* For Py_GetArgcArgv(); set by main() */
Guido van Rossum667d7041995-08-04 04:20:48 +000028static char **orig_argv;
29static int orig_argc;
30
Guido van Rossumbceccf52001-04-10 22:07:43 +000031/* command line options */
Guido van Rossum393661d2001-08-31 17:40:15 +000032#define BASE_OPTS "c:dD:EhiOStuUvVWxX:"
Guido van Rossumbceccf52001-04-10 22:07:43 +000033
34#ifndef RISCOS
35#define PROGRAM_OPTS BASE_OPTS
36#else /*RISCOS*/
37/* extra option saying that we are running under a special task window
38 frontend; especially my_readline will behave different */
39#define PROGRAM_OPTS BASE_OPTS "w"
40/* corresponding flag */
Guido van Rossum3ed4c152001-03-02 06:18:03 +000041extern int Py_RISCOSWimpFlag;
Guido van Rossumbceccf52001-04-10 22:07:43 +000042#endif /*RISCOS*/
Guido van Rossum3ed4c152001-03-02 06:18:03 +000043
Guido van Rossum667d7041995-08-04 04:20:48 +000044/* Short usage message (with %s for argv0) */
45static char *usage_line =
Guido van Rossum6b86a421999-01-28 15:07:47 +000046"usage: %s [option] ... [-c cmd | file | -] [arg] ...\n";
Guido van Rossum667d7041995-08-04 04:20:48 +000047
48/* Long usage message, split into parts < 512 bytes */
Guido van Rossum393661d2001-08-31 17:40:15 +000049static char *usage_1 = "\
Guido van Rossum667d7041995-08-04 04:20:48 +000050Options and arguments (and corresponding environment variables):\n\
Guido van Rossum393661d2001-08-31 17:40:15 +000051-c cmd : program passed in as string (terminates option list)\n\
Guido van Rossum667d7041995-08-04 04:20:48 +000052-d : debug output from parser (also PYTHONDEBUG=x)\n\
Guido van Rossum393661d2001-08-31 17:40:15 +000053-D arg : division options: -Dold (default), -Dwarn, -Dnew\n\
54-E : ignore environment variables (such as PYTHONPATH)\n\
55-h : print this help message and exit\n\
56";
57static char *usage_2 = "\
Guido van Rossum775af911997-02-14 19:50:32 +000058-i : inspect interactively after running script, (also PYTHONINSPECT=x)\n\
Guido van Rossumbba92ca1998-04-10 19:39:15 +000059 and force prompts, even if stdin does not appear to be a terminal\n\
Guido van Rossume7adf3e1998-10-07 14:50:06 +000060-O : optimize generated bytecode (a tad; also PYTHONOPTIMIZE=x)\n\
Guido van Rossum6b86a421999-01-28 15:07:47 +000061-OO : remove doc-strings in addition to the -O optimizations\n\
Guido van Rossum7922bd71997-08-29 22:34:47 +000062-S : don't imply 'import site' on initialization\n\
Guido van Rossumbba92ca1998-04-10 19:39:15 +000063-t : issue warnings about inconsistent tab usage (-tt: issue errors)\n\
Guido van Rossumbba92ca1998-04-10 19:39:15 +000064-u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x)\n\
Guido van Rossum393661d2001-08-31 17:40:15 +000065";
66static char *usage_3 = "\
Guido van Rossumc15a9a12000-05-01 17:54:33 +000067-U : Unicode literals: treats '...' literals like u'...'\n\
Guido van Rossum7922bd71997-08-29 22:34:47 +000068-v : verbose (trace import statements) (also PYTHONVERBOSE=x)\n\
Barry Warsaw3b2aedb2000-09-15 18:40:42 +000069-V : print the Python version number and exit\n\
Guido van Rossum47f5fdc2000-12-15 22:00:54 +000070-W arg : warning control (arg is action:message:category:module:lineno)\n\
Guido van Rossum393661d2001-08-31 17:40:15 +000071-x : skip first line of source, allowing use of non-Unix forms of #!cmd\n\
Guido van Rossum667d7041995-08-04 04:20:48 +000072file : program read from script file\n\
73- : program read from stdin (default; interactive mode if a tty)\n\
Guido van Rossum7922bd71997-08-29 22:34:47 +000074";
Guido van Rossum393661d2001-08-31 17:40:15 +000075static char *usage_4 = "\
Guido van Rossumbba92ca1998-04-10 19:39:15 +000076arg ...: arguments passed to program in sys.argv[1:]\n\
Guido van Rossum667d7041995-08-04 04:20:48 +000077Other environment variables:\n\
78PYTHONSTARTUP: file executed on interactive startup (no default)\n\
Guido van Rossuma075ce11997-12-05 21:56:45 +000079PYTHONPATH : '%c'-separated list of directories prefixed to the\n\
Guido van Rossum667d7041995-08-04 04:20:48 +000080 default module search path. The result is sys.path.\n\
Guido van Rossuma075ce11997-12-05 21:56:45 +000081PYTHONHOME : alternate <prefix> directory (or <prefix>%c<exec_prefix>).\n\
82 The default module search path uses %s.\n\
Tim Peters793de092001-02-22 00:39:47 +000083PYTHONCASEOK : ignore case in 'import' statements (Windows).\n\
Guido van Rossum667d7041995-08-04 04:20:48 +000084";
85
86
Barry Warsaw3b2aedb2000-09-15 18:40:42 +000087static void
88usage(int exitcode, char* program)
89{
Guido van Rossum393661d2001-08-31 17:40:15 +000090 FILE *f = exitcode ? stderr : stdout;
91
92 fprintf(f, usage_line, program);
93 if (exitcode)
94 fprintf(f, "Try `python -h' for more information.\n");
95 else {
96 fprintf(f, usage_1);
97 fprintf(f, usage_2);
98 fprintf(f, usage_3);
99 fprintf(f, usage_4, DELIM, DELIM, PYTHONHOMEHELP);
100 }
Barry Warsaw3b2aedb2000-09-15 18:40:42 +0000101 exit(exitcode);
102 /*NOTREACHED*/
103}
104
105
Guido van Rossum667d7041995-08-04 04:20:48 +0000106/* Main program */
107
Guido van Rossum9c1201f1998-12-07 14:28:47 +0000108DL_EXPORT(int)
Fredrik Lundh620f3772000-07-09 20:42:34 +0000109Py_Main(int argc, char **argv)
Guido van Rossum667d7041995-08-04 04:20:48 +0000110{
111 int c;
112 int sts;
113 char *command = NULL;
114 char *filename = NULL;
115 FILE *fp = stdin;
116 char *p;
117 int inspect = 0;
118 int unbuffered = 0;
Guido van Rossuma075ce11997-12-05 21:56:45 +0000119 int skipfirstline = 0;
Guido van Rossum775af911997-02-14 19:50:32 +0000120 int stdin_is_interactive = 0;
Barry Warsaw3b2aedb2000-09-15 18:40:42 +0000121 int help = 0;
122 int version = 0;
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +0000123 int saw_inspect_flag = 0;
124 int saw_unbuffered_flag = 0;
Jeremy Hyltonbc320242001-03-22 02:47:58 +0000125 PyCompilerFlags cf;
Guido van Rossum667d7041995-08-04 04:20:48 +0000126
Guido van Rossum393661d2001-08-31 17:40:15 +0000127 cf.cf_flags = 0;
128
Guido van Rossumac56b031996-07-21 02:33:38 +0000129 orig_argc = argc; /* For Py_GetArgcArgv() */
Guido van Rossum667d7041995-08-04 04:20:48 +0000130 orig_argv = argv;
Guido van Rossum667d7041995-08-04 04:20:48 +0000131
Guido van Rossum3ed4c152001-03-02 06:18:03 +0000132#ifdef RISCOS
133 Py_RISCOSWimpFlag = 0;
134#endif
135
Guido van Rossum47f5fdc2000-12-15 22:00:54 +0000136 PySys_ResetWarnOptions();
137
Guido van Rossumbceccf52001-04-10 22:07:43 +0000138 while ((c = _PyOS_GetOpt(argc, argv, PROGRAM_OPTS)) != EOF) {
Guido van Rossum667d7041995-08-04 04:20:48 +0000139 if (c == 'c') {
140 /* -c is the last option; following arguments
141 that look like options are left for the
142 the command to interpret. */
Thomas Wouters2cffc7d2000-11-03 08:18:37 +0000143 command = malloc(strlen(_PyOS_optarg) + 2);
Guido van Rossum667d7041995-08-04 04:20:48 +0000144 if (command == NULL)
145 Py_FatalError(
146 "not enough memory to copy -c argument");
Thomas Wouters2cffc7d2000-11-03 08:18:37 +0000147 strcpy(command, _PyOS_optarg);
Guido van Rossum667d7041995-08-04 04:20:48 +0000148 strcat(command, "\n");
149 break;
150 }
Guido van Rossum393661d2001-08-31 17:40:15 +0000151
Guido van Rossum667d7041995-08-04 04:20:48 +0000152 switch (c) {
153
154 case 'd':
155 Py_DebugFlag++;
156 break;
157
Guido van Rossum393661d2001-08-31 17:40:15 +0000158 case 'D':
159 if (strcmp(_PyOS_optarg, "old") == 0) {
160 Py_DivisionWarningFlag = 0;
161 break;
162 }
163 if (strcmp(_PyOS_optarg, "warn") == 0) {
164 Py_DivisionWarningFlag++;
165 break;
166 }
167 if (strcmp(_PyOS_optarg, "new") == 0) {
168 /* XXX This only affects __main__ */
169 cf.cf_flags |= CO_FUTURE_DIVISION;
170 break;
171 }
172 fprintf(stderr,
173 "-D option should be "
174 "`-Dold', `-Dwarn' or `-Dnew' only\n");
175 usage(2, argv[0]);
176 /* NOTREACHED */
177
Guido van Rossum667d7041995-08-04 04:20:48 +0000178 case 'i':
179 inspect++;
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +0000180 saw_inspect_flag = 1;
Guido van Rossum775af911997-02-14 19:50:32 +0000181 Py_InteractiveFlag++;
Guido van Rossum667d7041995-08-04 04:20:48 +0000182 break;
183
Guido van Rossum7614da61997-03-03 19:14:45 +0000184 case 'O':
185 Py_OptimizeFlag++;
186 break;
187
Guido van Rossum7922bd71997-08-29 22:34:47 +0000188 case 'S':
189 Py_NoSiteFlag++;
190 break;
191
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +0000192 case 'E':
193 Py_IgnoreEnvironmentFlag++;
194 break;
195
Guido van Rossumbba92ca1998-04-10 19:39:15 +0000196 case 't':
197 Py_TabcheckFlag++;
198 break;
199
Guido van Rossum667d7041995-08-04 04:20:48 +0000200 case 'u':
201 unbuffered++;
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +0000202 saw_unbuffered_flag = 1;
Guido van Rossum667d7041995-08-04 04:20:48 +0000203 break;
204
205 case 'v':
206 Py_VerboseFlag++;
207 break;
208
Guido van Rossum3ed4c152001-03-02 06:18:03 +0000209#ifdef RISCOS
210 case 'w':
211 Py_RISCOSWimpFlag = 1;
212 break;
213#endif
214
Guido van Rossuma075ce11997-12-05 21:56:45 +0000215 case 'x':
216 skipfirstline = 1;
217 break;
218
Guido van Rossumc15a9a12000-05-01 17:54:33 +0000219 case 'U':
220 Py_UnicodeFlag++;
221 break;
Barry Warsaw3b2aedb2000-09-15 18:40:42 +0000222 case 'h':
223 help++;
224 break;
225 case 'V':
226 version++;
227 break;
Guido van Rossumc15a9a12000-05-01 17:54:33 +0000228
Guido van Rossum47f5fdc2000-12-15 22:00:54 +0000229 case 'W':
230 PySys_AddWarnOption(_PyOS_optarg);
231 break;
232
Guido van Rossum667d7041995-08-04 04:20:48 +0000233 /* This space reserved for other options */
234
235 default:
Barry Warsaw3b2aedb2000-09-15 18:40:42 +0000236 usage(2, argv[0]);
Guido van Rossum667d7041995-08-04 04:20:48 +0000237 /*NOTREACHED*/
238
239 }
240 }
241
Barry Warsaw3b2aedb2000-09-15 18:40:42 +0000242 if (help)
243 usage(0, argv[0]);
244
245 if (version) {
246 fprintf(stderr, "Python %s\n", PY_VERSION);
247 exit(0);
248 }
249
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +0000250 if (!saw_inspect_flag &&
251 (p = Py_GETENV("PYTHONINSPECT")) && *p != '\0')
252 inspect = 1;
253 if (!saw_unbuffered_flag &&
254 (p = Py_GETENV("PYTHONUNBUFFERED")) && *p != '\0')
255 unbuffered = 1;
256
Thomas Wouters2cffc7d2000-11-03 08:18:37 +0000257 if (command == NULL && _PyOS_optind < argc &&
258 strcmp(argv[_PyOS_optind], "-") != 0)
Guido van Rossum775af911997-02-14 19:50:32 +0000259 {
Thomas Wouters2cffc7d2000-11-03 08:18:37 +0000260 filename = argv[_PyOS_optind];
Guido van Rossum775af911997-02-14 19:50:32 +0000261 if (filename != NULL) {
262 if ((fp = fopen(filename, "r")) == NULL) {
263 fprintf(stderr, "%s: can't open file '%s'\n",
264 argv[0], filename);
265 exit(2);
266 }
Guido van Rossuma075ce11997-12-05 21:56:45 +0000267 else if (skipfirstline) {
Guido van Rossumdc8b5691999-04-19 17:54:19 +0000268 int ch;
269 /* Push back first newline so line numbers
270 remain the same */
271 while ((ch = getc(fp)) != EOF) {
272 if (ch == '\n') {
273 (void)ungetc(ch, fp);
274 break;
275 }
276 }
Guido van Rossuma075ce11997-12-05 21:56:45 +0000277 }
Guido van Rossum775af911997-02-14 19:50:32 +0000278 }
279 }
280
281 stdin_is_interactive = Py_FdIsInteractive(stdin, (char *)0);
282
Guido van Rossum667d7041995-08-04 04:20:48 +0000283 if (unbuffered) {
Guido van Rossumf22d7e21997-01-11 19:28:55 +0000284#ifdef MS_WINDOWS
Guido van Rossum3e7ae7a1997-01-17 22:05:38 +0000285 _setmode(fileno(stdin), O_BINARY);
286 _setmode(fileno(stdout), O_BINARY);
Guido van Rossumf22d7e21997-01-11 19:28:55 +0000287#endif
Guido van Rossum667d7041995-08-04 04:20:48 +0000288#ifndef MPW
Guido van Rossum22ffac11998-03-06 15:30:39 +0000289#ifdef HAVE_SETVBUF
Guido van Rossum775af911997-02-14 19:50:32 +0000290 setvbuf(stdin, (char *)NULL, _IONBF, BUFSIZ);
291 setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ);
292 setvbuf(stderr, (char *)NULL, _IONBF, BUFSIZ);
Guido van Rossum22ffac11998-03-06 15:30:39 +0000293#else /* !HAVE_SETVBUF */
294 setbuf(stdin, (char *)NULL);
295 setbuf(stdout, (char *)NULL);
296 setbuf(stderr, (char *)NULL);
297#endif /* !HAVE_SETVBUF */
298#else /* MPW */
Guido van Rossum667d7041995-08-04 04:20:48 +0000299 /* On MPW (3.2) unbuffered seems to hang */
Guido van Rossum775af911997-02-14 19:50:32 +0000300 setvbuf(stdin, (char *)NULL, _IOLBF, BUFSIZ);
Guido van Rossum667d7041995-08-04 04:20:48 +0000301 setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ);
302 setvbuf(stderr, (char *)NULL, _IOLBF, BUFSIZ);
Guido van Rossum22ffac11998-03-06 15:30:39 +0000303#endif /* MPW */
Guido van Rossum667d7041995-08-04 04:20:48 +0000304 }
Guido van Rossum2a212191997-04-11 21:57:53 +0000305 else if (Py_InteractiveFlag) {
Guido van Rossumb31c7dc1997-04-11 22:19:12 +0000306#ifdef MS_WINDOWS
307 /* Doesn't have to have line-buffered -- use unbuffered */
Guido van Rossum01b7ced1999-02-09 18:36:51 +0000308 /* Any set[v]buf(stdin, ...) screws up Tkinter :-( */
Guido van Rossumb31c7dc1997-04-11 22:19:12 +0000309 setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ);
Guido van Rossum22ffac11998-03-06 15:30:39 +0000310#else /* !MS_WINDOWS */
311#ifdef HAVE_SETVBUF
Guido van Rossumb31c7dc1997-04-11 22:19:12 +0000312 setvbuf(stdin, (char *)NULL, _IOLBF, BUFSIZ);
313 setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ);
Guido van Rossum22ffac11998-03-06 15:30:39 +0000314#endif /* HAVE_SETVBUF */
315#endif /* !MS_WINDOWS */
Guido van Rossum775af911997-02-14 19:50:32 +0000316 /* Leave stderr alone - it should be unbuffered anyway. */
317 }
Guido van Rossum667d7041995-08-04 04:20:48 +0000318
Guido van Rossumed52aac1997-07-19 19:20:32 +0000319 Py_SetProgramName(argv[0]);
320 Py_Initialize();
321
Guido van Rossum667d7041995-08-04 04:20:48 +0000322 if (Py_VerboseFlag ||
Guido van Rossum129e91a1997-02-14 21:00:50 +0000323 (command == NULL && filename == NULL && stdin_is_interactive))
Guido van Rossumfe4dfc71997-05-19 18:33:01 +0000324 fprintf(stderr, "Python %s on %s\n%s\n",
Guido van Rossuma22865e2000-09-05 04:41:18 +0000325 Py_GetVersion(), Py_GetPlatform(), COPYRIGHT);
Guido van Rossum393661d2001-08-31 17:40:15 +0000326
Guido van Rossum667d7041995-08-04 04:20:48 +0000327 if (command != NULL) {
Thomas Wouters2cffc7d2000-11-03 08:18:37 +0000328 /* Backup _PyOS_optind and force sys.argv[0] = '-c' */
329 _PyOS_optind--;
330 argv[_PyOS_optind] = "-c";
Guido van Rossum667d7041995-08-04 04:20:48 +0000331 }
332
Thomas Wouters2cffc7d2000-11-03 08:18:37 +0000333 PySys_SetArgv(argc-_PyOS_optind, argv+_PyOS_optind);
Guido van Rossum667d7041995-08-04 04:20:48 +0000334
Guido van Rossum3d26cc91997-09-16 16:11:28 +0000335 if ((inspect || (command == NULL && filename == NULL)) &&
336 isatty(fileno(stdin))) {
337 PyObject *v;
338 v = PyImport_ImportModule("readline");
339 if (v == NULL)
340 PyErr_Clear();
341 else
342 Py_DECREF(v);
343 }
344
Guido van Rossum667d7041995-08-04 04:20:48 +0000345 if (command) {
Guido van Rossum393661d2001-08-31 17:40:15 +0000346 sts = PyRun_SimpleStringFlags(command, &cf) != 0;
Guido van Rossum05f7c501997-08-02 03:00:42 +0000347 free(command);
Guido van Rossum667d7041995-08-04 04:20:48 +0000348 }
349 else {
Guido van Rossum775af911997-02-14 19:50:32 +0000350 if (filename == NULL && stdin_is_interactive) {
Neil Schemenauer7d4bb9f2001-07-23 16:30:27 +0000351 char *startup = Py_GETENV("PYTHONSTARTUP");
Guido van Rossum667d7041995-08-04 04:20:48 +0000352 if (startup != NULL && startup[0] != '\0') {
353 FILE *fp = fopen(startup, "r");
354 if (fp != NULL) {
355 (void) PyRun_SimpleFile(fp, startup);
356 PyErr_Clear();
357 fclose(fp);
358 }
359 }
360 }
Jeremy Hyltonbc320242001-03-22 02:47:58 +0000361 /* XXX */
362 sts = PyRun_AnyFileExFlags(
Guido van Rossum775af911997-02-14 19:50:32 +0000363 fp,
Guido van Rossum0df002c2000-08-27 19:21:52 +0000364 filename == NULL ? "<stdin>" : filename,
Jeremy Hyltonbc320242001-03-22 02:47:58 +0000365 filename != NULL, &cf) != 0;
Guido van Rossum667d7041995-08-04 04:20:48 +0000366 }
367
Guido van Rossum775af911997-02-14 19:50:32 +0000368 if (inspect && stdin_is_interactive &&
Guido van Rossum667d7041995-08-04 04:20:48 +0000369 (filename != NULL || command != NULL))
Jeremy Hyltonbc320242001-03-22 02:47:58 +0000370 /* XXX */
371 sts = PyRun_AnyFileFlags(stdin, "<stdin>", &cf) != 0;
Guido van Rossum667d7041995-08-04 04:20:48 +0000372
Guido van Rossum5d1770e1997-08-05 02:23:48 +0000373 Py_Finalize();
Guido van Rossum3ed4c152001-03-02 06:18:03 +0000374#ifdef RISCOS
375 if(Py_RISCOSWimpFlag)
376 fprintf(stderr, "\x0cq\x0c"); /* make frontend quit */
377#endif
Barry Warsaw3e13b1e2001-02-23 16:46:39 +0000378
379#ifdef __INSURE__
380 /* Insure++ is a memory analysis tool that aids in discovering
381 * memory leaks and other memory problems. On Python exit, the
382 * interned string dictionary is flagged as being in use at exit
383 * (which it is). Under normal circumstances, this is fine because
384 * the memory will be automatically reclaimed by the system. Under
385 * memory debugging, it's a huge source of useless noise, so we
386 * trade off slower shutdown for less distraction in the memory
387 * reports. -baw
388 */
389 _Py_ReleaseInternedStrings();
390#endif /* __INSURE__ */
391
Guido van Rossum05f7c501997-08-02 03:00:42 +0000392 return sts;
Guido van Rossum667d7041995-08-04 04:20:48 +0000393}
394
395
Guido van Rossum667d7041995-08-04 04:20:48 +0000396/* Make the *original* argc/argv available to other modules.
397 This is rare, but it is needed by the secureware extension. */
398
399void
Fredrik Lundh620f3772000-07-09 20:42:34 +0000400Py_GetArgcArgv(int *argc, char ***argv)
Guido van Rossum667d7041995-08-04 04:20:48 +0000401{
402 *argc = orig_argc;
403 *argv = orig_argv;
404}