Sigh: the Jaguar workaround for the prefs file broke saving it on OS9. Temporary workaround is to ignore the exception (it's only about file creator/type anyway).
This commit is contained in:
parent
9937a04994
commit
19ac481a2c
|
@ -70,8 +70,11 @@ class PrefFile(PrefObject):
|
|||
else:
|
||||
prefdict[key] = value
|
||||
marshal.dump(prefdict, open(self.__path, 'wb'))
|
||||
fss = macfs.FSSpec(macfs.FSRef(self.__path))
|
||||
fss.SetCreatorType(self.__creator, 'pref')
|
||||
try:
|
||||
fss = macfs.FSSpec(macfs.FSRef(self.__path))
|
||||
fss.SetCreatorType(self.__creator, 'pref')
|
||||
except:
|
||||
pass
|
||||
|
||||
def __getattr__(self, attr):
|
||||
if attr == '__members__':
|
||||
|
|
Loading…
Reference in New Issue