From 0a3939fc7117edbca8d7946c3e892937649758b5 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 9 Mar 2001 23:15:27 +0000 Subject: [PATCH] Finished implementation of removing incorrect preferences file. --- Mac/scripts/ConfigurePython.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mac/scripts/ConfigurePython.py b/Mac/scripts/ConfigurePython.py index 94e3b9530b4..f651b049d98 100644 --- a/Mac/scripts/ConfigurePython.py +++ b/Mac/scripts/ConfigurePython.py @@ -124,7 +124,9 @@ def main(): 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)