]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Finished implementation of removing incorrect preferences file.
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 9 Mar 2001 23:15:27 +0000 (23:15 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 9 Mar 2001 23:15:27 +0000 (23:15 +0000)
Mac/scripts/ConfigurePython.py

index 94e3b9530b4dc665cefa5c05f5e54acb11798421..f651b049d981acab3020ee3d2ea1317dc73eeff4 100644 (file)
@@ -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)