comparison 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
comparison
equal deleted inserted replaced
17016:19c2f50e5395 17017:3f5a54a8a1fb
122 newcwd = os.getcwd() 122 newcwd = os.getcwd()
123 if oldcwd != newcwd: 123 if oldcwd != newcwd:
124 import Dlg 124 import Dlg
125 rv = Dlg.CautionAlert(ALERT_NOTPYTHONFOLDER, None) 125 rv = Dlg.CautionAlert(ALERT_NOTPYTHONFOLDER, None)
126 if rv == ALERT_NOTPYTHONFOLDER_REMOVE_QUIT: 126 if rv == ALERT_NOTPYTHONFOLDER_REMOVE_QUIT:
127 print "TBD: Should remove preferences file" 127 import pythonprefs, preferences
128 prefpathname = pythonprefs.pref_fss.as_pathname()
129 os.remove(prefpathname)
128 sys.exit(0) 130 sys.exit(0)
129 elif rv == ALERT_NOTPYTHONFOLDER_QUIT: 131 elif rv == ALERT_NOTPYTHONFOLDER_QUIT:
130 sys.exit(0) 132 sys.exit(0)
131 133
132 sys.path.append('::Mac:Lib') 134 sys.path.append('::Mac:Lib')