Finished implementation of removing incorrect preferences file.

This commit is contained in:
Jack Jansen 2001-03-09 23:15:27 +00:00
parent e5c9474f0f
commit 0a3939fc71
1 changed files with 3 additions and 1 deletions

View 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)