diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-02-13 11:44:56 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-02-13 11:44:56 (GMT) |
commit | bd06e96217786f1a0fd2eb2bc6e6494547a0b695 (patch) | |
tree | ea6a5daa77dbbcd75aa1a0ef12f7168dc03080b7 /Python | |
parent | 7467ce3eeadaedf89961884d5052a2d94a8b114e (diff) | |
download | cpython-bd06e96217786f1a0fd2eb2bc6e6494547a0b695.zip cpython-bd06e96217786f1a0fd2eb2bc6e6494547a0b695.tar.gz cpython-bd06e96217786f1a0fd2eb2bc6e6494547a0b695.tar.bz2 |
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.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 43ff599..e46a526 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -230,7 +230,13 @@ run_script(fp, filename) 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 @@ goaway(sts) #ifdef __MWERKS__ if (sts == 0) SIOUXSettings.autocloseonquit = 1; + else + SIOUXSettings.showstatusline = 1; #endif exit(sts); #endif /* WITH_THREAD */ |