~pythonregexp2.7/python/issue2636

« back to all changes in this revision

Viewing changes to Modules/main.c

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-05-24 16:05:21 UTC
  • mfrom: (39021.1.401 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080524160521-1xenj7p6u3wb89et
Merged in changes from the latest python source snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
static int  orig_argc;
41
41
 
42
42
/* command line options */
43
 
#define BASE_OPTS "3bBc:dEhiJm:OQ:StuUvVW:xX?"
 
43
#define BASE_OPTS "3bBc:dEhiJm:OQ:sStuUvVW:xX?"
44
44
 
45
45
#ifndef RISCOS
46
46
#define PROGRAM_OPTS BASE_OPTS
72
72
-O     : optimize generated bytecode slightly; also PYTHONOPTIMIZE=x\n\
73
73
-OO    : remove doc-strings in addition to the -O optimizations\n\
74
74
-Q arg : division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew\n\
 
75
-s     : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\
75
76
-S     : don't imply 'import site' on initialization\n\
76
77
-t     : issue warnings about inconsistent tab usage (-tt: issue errors)\n\
77
78
";
359
360
                        Py_DontWriteBytecodeFlag++;
360
361
                        break;
361
362
 
 
363
                case 's':
 
364
                        Py_NoUserSiteDirectory++;
 
365
                        break;
 
366
 
362
367
                case 'S':
363
368
                        Py_NoSiteFlag++;
364
369
                        break;
431
436
            (p = Py_GETENV("PYTHONUNBUFFERED")) && *p != '\0')
432
437
                unbuffered = 1;
433
438
 
 
439
        if (!Py_NoUserSiteDirectory &&
 
440
            (p = Py_GETENV("PYTHONNOUSERSITE")) && *p != '\0')
 
441
                Py_NoUserSiteDirectory = 1;
 
442
 
434
443
        if (command == NULL && module == NULL && _PyOS_optind < argc &&
435
444
            strcmp(argv[_PyOS_optind], "-") != 0)
436
445
        {