put the preferences file in a folder called "Python" inside the prefs folder, just like the IDE does -- jvr

This commit is contained in:
Just van Rossum 1999-02-02 15:49:03 +00:00
parent 9202755fcb
commit 26a69db4c7
2 changed files with 38 additions and 11 deletions

View file

@ -205,7 +205,7 @@ class StrListLoader:
def preferencefile(filename, creator=None, type=None):
create = creator != None and type != None
vrefnum, dirid = macfs.FindFolder(MACFS.kOnSystemDisk, 'pref', create)
fss = macfs.FSSpec((vrefnum, dirid, filename))
fss = macfs.FSSpec((vrefnum, dirid, ":Python:" + filename))
oldrf = Res.CurResFile()
if create:
try: