Mac-specific code for setting filetype was outdated.

This commit is contained in:
Jack Jansen 1995-04-23 22:06:57 +00:00
parent 5dbc7231a0
commit e99c824bad
1 changed files with 3 additions and 3 deletions

View File

@ -25,6 +25,6 @@ def compile(file, cfile = None):
marshal.dump(codeobject, fc)
fc.close()
if os.name == 'mac':
import MacOS
MacOS.SetFileType(cfile, 'PYC ', 'PYTH')
MacOS.SetFileType(file, 'TEXT', 'PYTH')
import macfs
macfs.FSSpec(cfile).SetCreatorType('PYTH', 'PYC ')
macfs.FSSpec(file).SetCreatorType('PYTH', 'TEXT')