Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 2318:99e7ac22bd2e legacy-trunk
mac changes:
- Assume files of types 'PYC ' and 'APPL' are compiled python code
- For mwerks, show status line when program has terminated while
keeping window open.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Mon, 13 Feb 1995 11:44:56 +0000 |
| parents | a24146241991 |
| children | 16ea57c38c4f |
line wrap: on
line diff
--- a/Python/pythonrun.c Mon Feb 13 11:41:40 1995 +0000 +++ b/Python/pythonrun.c Mon Feb 13 11:44:56 1995 +0000 @@ -230,7 +230,13 @@ return -1; d = getmoduledict(m); ext = filename + strlen(filename) - 4; +#ifdef macintosh + /* On a mac, we also assume a pyc file for types 'PYC ' and 'APPL' */ + if ( strcmp(ext, ".pyc") == 0 || getfiletype(filename) == 'PYC ' || + getfiletype(filename) == 'APPL' ) { +#else if ( strcmp(ext, ".pyc") == 0 ) { +#endif /* macintosh */ /* Try to run a pyc file. First, re-open in binary */ /* Don't close, done in main: fclose(fp); */ if( (fp = fopen(filename, "rb")) == NULL ) { @@ -667,6 +673,8 @@ #ifdef __MWERKS__ if (sts == 0) SIOUXSettings.autocloseonquit = 1; + else + SIOUXSettings.showstatusline = 1; #endif exit(sts); #endif /* WITH_THREAD */
