Kaydet (Commit) 19ac481a authored tarafından Jack Jansen's avatar Jack Jansen

Sigh: the Jaguar workaround for the prefs file broke saving it on OS9. Temporary…

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).
üst 9937a049
......@@ -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__':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment