Go from filename to FSSpec via FSRefs, to work around outdated macfs module

in python 2.2.
This commit is contained in:
Jack Jansen
2002-11-15 00:08:29 +00:00
parent d892d4e1c0
commit 4ea1f455d7

View File

@@ -86,7 +86,7 @@ def buildapplet():
verbose = 'default'
# Loop over all files to be processed
for filename in args:
cr, tp = MacOS.GetCreatorAndType(filename)
cr, tp = MacOS.GetCreatorAndType(macfs.FSRef(filename))
if tp == 'APPL':
buildtools.update(template, filename, dstfilename)
else: