Finished implementation of removing incorrect preferences file.
This commit is contained in:
parent
e5c9474f0f
commit
0a3939fc71
|
@ -124,7 +124,9 @@ def main():
|
||||||
import Dlg
|
import Dlg
|
||||||
rv = Dlg.CautionAlert(ALERT_NOTPYTHONFOLDER, None)
|
rv = Dlg.CautionAlert(ALERT_NOTPYTHONFOLDER, None)
|
||||||
if rv == ALERT_NOTPYTHONFOLDER_REMOVE_QUIT:
|
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)
|
sys.exit(0)
|
||||||
elif rv == ALERT_NOTPYTHONFOLDER_QUIT:
|
elif rv == ALERT_NOTPYTHONFOLDER_QUIT:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
Loading…
Reference in New Issue