Mercurial > cpython-lru_cache-weakref
diff Mac/scripts/ConfigurePython.py @ 17017:3f5a54a8a1fb legacy-trunk
Finished implementation of removing incorrect preferences file.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Fri, 09 Mar 2001 23:15:27 +0000 |
| parents | 6bdf563c763b |
| children | 1f700a7206b2 |
line wrap: on
line diff
--- a/Mac/scripts/ConfigurePython.py Thu Mar 08 23:10:37 2001 +0000 +++ b/Mac/scripts/ConfigurePython.py Fri Mar 09 23:15:27 2001 +0000 @@ -124,7 +124,9 @@ import Dlg rv = Dlg.CautionAlert(ALERT_NOTPYTHONFOLDER, None) if rv == ALERT_NOTPYTHONFOLDER_REMOVE_QUIT: - print "TBD: Should remove preferences file" + import pythonprefs, preferences + prefpathname = pythonprefs.pref_fss.as_pathname() + os.remove(prefpathname) sys.exit(0) elif rv == ALERT_NOTPYTHONFOLDER_QUIT: sys.exit(0)
