Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a3939f

Browse files
committed
Finished implementation of removing incorrect preferences file.
1 parent e5c9474 commit 0a3939f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Mac/scripts/ConfigurePython.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ def main():
124124
import Dlg
125125
rv = Dlg.CautionAlert(ALERT_NOTPYTHONFOLDER, None)
126126
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)
128130
sys.exit(0)
129131
elif rv == ALERT_NOTPYTHONFOLDER_QUIT:
130132
sys.exit(0)

0 commit comments

Comments
 (0)