diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-03-09 23:15:27 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-03-09 23:15:27 (GMT) |
commit | 0a3939fc7117edbca8d7946c3e892937649758b5 (patch) | |
tree | b365cf5f67880b512baa740be56f1b51d7cc9503 | |
parent | e5c9474f0fbe22b5e2494bfcc5e0e97a25e121c5 (diff) | |
download | cpython-0a3939fc7117edbca8d7946c3e892937649758b5.zip cpython-0a3939fc7117edbca8d7946c3e892937649758b5.tar.gz cpython-0a3939fc7117edbca8d7946c3e892937649758b5.tar.bz2 |
Finished implementation of removing incorrect preferences file.
-rw-r--r-- | Mac/scripts/ConfigurePython.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mac/scripts/ConfigurePython.py b/Mac/scripts/ConfigurePython.py index 94e3b95..f651b04 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) |