Commits

Jack Jansen  committed 99e7ac2

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.

  • Participants
  • Parent commits 1ce07f6
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Python/pythonrun.c

 		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 ) {
 #ifdef __MWERKS__
 	if (sts == 0)
 		SIOUXSettings.autocloseonquit = 1;
+	else
+		SIOUXSettings.showstatusline = 1;
 #endif
 	exit(sts);
 #endif /* WITH_THREAD */